Software version transmission method and device

By generating and transmitting the target intelligent installation strategy package, the file coverage problem caused by the error in the installation order during the software version transmission is solved, and differentiated incremental coverage of the software version is achieved to ensure the stability of the test environment and the normal investment in the production environment.

CN113535558BActive Publication Date: 2024-12-06INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110793900.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2024-12-06
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

The existing software version transmission method can only support all software version files in the test environment, and cannot meet the requirements for creating different software versions multiple times, resulting in the installation order error, resulting in the original version file being overwritten, which makes the test environment unavailable and affects the business. Normal investment in testing and production environments.

Method used

By generating the target intelligent installation policy package, including compilation time, compiled version number and hash code, it is transmitted to the test environment, and the target software version is judged and built to ensure that the file is installed correctly and avoid overwriting the original version.

Benefits of technology

It realizes the requirements for creating different software versions multiple times in the test environment, ensures that the files are installed correctly, improves the application effectiveness and reliability of the test environment, ensures smooth business testing and ensures normal investment in the production environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535558B_ABST
    Figure CN113535558B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a software version transmission method and device, which can be used in the field of financial technology. The method includes: generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information; packaging the target installation template, and generating the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version, and transmitting the target software version to the target test environment to build the corresponding target software version in the target test environment. The present application can meet the needs of creating different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created according to the original installation order, the new target software version can be correctly installed without causing the original version file to be incorrectly overwritten, thereby effectively improving the application effectiveness and reliability of the test environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, in particular to the field of financial technology, and specifically to a method and device for transmitting a software version. Background Art

[0002] With the rapid development of fields such as the financial technology industry, business needs are also being updated at an increasingly faster pace. The pace of research and development has led to the need for multiple branches to run in parallel for a long period of time, and the magnitude of software versions is also increasing. In order to ensure that the software can run correctly in the production environment, each software version needs to be tested in a test environment.

[0003] At present, the existing software version transmission method usually only supports the situation where all software version files in the test environment are overwritten, and cannot meet the needs of creating different software versions multiple times in a test environment. Once the software versions created in the test environment are not created according to the original installation order, the original version files will be incorrectly overwritten, which will make the test environment unavailable, business testing cannot proceed smoothly, and affect the normal implementation of business needs in the production environment. Summary of the invention

[0004] In response to the problems in the prior art, the present application provides a software version transmission method and device, which can meet the needs of creating different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created according to the original installation order, the new target software version can be correctly installed without causing the original version file to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs can be put into the production environment normally.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] In a first aspect, the present application provides a software version transmission method, comprising:

[0007] Generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information;

[0008] The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version;

[0009] According to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment.

[0010] Further, generating a target installation template including a target software version according to at least one policy item corresponding to the target policy package information includes:

[0011] Receive target policy package information, wherein the target policy package information includes a policy package name, a policy package identifier, and notification information indicating whether the target policy package is a smart package;

[0012] If the notification information corresponding to the target policy package information indicates that the installation policy package corresponding to the target policy package information is a smart package, obtaining at least one policy item corresponding to the target policy package information from the pre-stored correspondence between each policy package identifier and each policy item;

[0013] A target installation template corresponding to the target policy package information is generated according to at least one policy item, a policy package name, and a policy package identifier corresponding to the target policy package information.

[0014] Furthermore, the target policy package information also includes an initial version number of the target policy package;

[0015] Correspondingly, before packaging the target installation template, the method further includes:

[0016] The initial version number of the target policy package corresponding to the target installation template is stored.

[0017] Further, the target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version, including:

[0018] The target installation template is packaged to generate a compiled version number corresponding to the initial version number of the target policy package, and a corresponding label, compilation time and hash code are generated to obtain a target intelligent installation policy package of the target software version corresponding to the target policy package information;

[0019] The target intelligent installation strategy package is also provided with an intelligent file list, which is used to store the initial version number, compilation time, label, compilation version number, hash code, all file information and relative path corresponding to the target software version.

[0020] Further, before transmitting the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, it also includes:

[0021] Get the current environment list of the target test environment;

[0022] Determine whether the environment list contains a smart installation policy package with the same policy package name and / or policy package identifier as the target smart installation policy package; if not, transfer the target smart installation policy package to the target test environment based on the target smart installation policy package to build the corresponding target software version in the target test environment, update the environment list of the target test environment based on the target software version, and output the corresponding target software version build result.

[0023] Further, the transmitting the target intelligent installation policy package to the target test environment to build the corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package includes:

[0024] If it is determined that the environment list contains a smart installation policy package that is the same as the target smart installation policy package, then determining whether the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment;

[0025] If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, and if the hash code corresponding to the target smart installation policy package has covered the hash code of the smart installation policy package in the target test environment, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0026] Further, the transmitting the target intelligent installation policy package to the target test environment to build the corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package, further includes:

[0027] If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, the hash code corresponding to the target smart installation policy package does not cover the hash code of the smart installation policy package in the target test environment, and the target smart installation policy package is a configuration file, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0028] Further, the transmitting the target intelligent installation policy package to the target test environment to build the corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package, further includes:

[0029] If the hash code corresponding to the target smart installation policy package is different from the hash code of the smart installation policy package in the target test environment, determining whether the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compilation version number of the target smart installation policy package;

[0030] If the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compilation version number of the target smart installation policy package, and the compilation time of the target smart installation policy package is greater than the compilation time of the smart installation policy package in the environment list that is the same as the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0031] Further, the transmitting the target intelligent installation policy package to the target test environment to build the corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package, further includes:

[0032] If the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is different from the compilation version number of the target smart installation policy package, and the compilation version number of the target smart installation policy package is greater than the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0033] In a second aspect, the present application provides a software version transmission device, including:

[0034] A template generation module, used to generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information;

[0035] A policy package creation module is used to package the target installation template and generate the corresponding compilation time, compilation version number and hash code to obtain a target intelligent installation policy package corresponding to the target software version;

[0036] The version transmission module is used to transmit the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment.

[0037] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the software version transmission method when executing the program.

[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the software version transmission method when executed by a processor.

[0039] It can be seen from the above technical scheme that the present application provides a software version transmission method and device, the method comprising: generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information; packaging the target installation template, and generating a corresponding compilation time, compilation version number and hash code to obtain a target intelligent installation policy package corresponding to the target software version; transmitting the target intelligent installation policy package to a target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, it is possible to meet the different creation policy configuration requirements of each software version file, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template, and generating a corresponding compilation time, compilation version number and hash code to obtain a target intelligent installation policy package corresponding to the target software version, it is possible to effectively improve the effectiveness of generating an intelligent installation policy package, and provide for subsequent software version transmission. Reliable and effective data foundation; by transmitting the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, it can overcome the problem of automatic installation of the server environment under the parallel incremental release of multiple software versions, and can achieve differentiated incremental coverage of software versions, ensuring that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment, and even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version file to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 It is a schematic diagram of the connection relationship between the software version transmission device and the client device in an embodiment of the present application.

[0042] Figure 2 This is a first flow chart of the software version transmission method in the embodiment of the present application.

[0043] Figure 3 It is a second flow chart of the software version transmission method in the embodiment of the present application.

[0044] Figure 4 This is a third flow chart of the software version transmission method in the embodiment of the present application.

[0045] Figure 5 This is a fourth flow chart of the software version transmission method in the embodiment of the present application.

[0046] Figure 6 This is a fifth flow chart of the software version transmission method in the embodiment of the present application.

[0047] Figure 7 This is a sixth flow chart of the software version transmission method in the embodiment of the present application.

[0048] Figure 8 This is the seventh flow chart of the software version transmission method in the embodiment of the present application.

[0049] Fig. 9 This is the eighth flow chart of the software version transmission method in the embodiment of the present application.

[0050] Fig.10 This is the ninth flow chart of the software version transmission method in the embodiment of the present application.

[0051] Fig.11 It is a structural diagram of the software version transmission device in the embodiment of the present application.

[0052] Fig.12 It is a functional diagram of the software version transmission method provided by the application example of this application.

[0053] Fig.13 It is a schematic diagram of the correspondence between the policy package table and the compilation policy table provided in the application example of this application.

[0054] Fig.14 It is a schematic diagram of the execution logic of intelligent file transfer provided by the application example of this application.

[0055] Fig.15 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] It should be noted that the software version transmission method and device disclosed in the present application can be used in the field of financial technology, and can also be used in any field outside the field of financial technology. The application field of the software version transmission method and device disclosed in the present application is not limited.

[0058] With regard to the existing software version transmission method, since it only supports full file overwriting, there is a situation where the original version file is easily overwritten by mistake, which makes the test environment unavailable, and the new software version cannot be correctly created on the test machine, resulting in the inability to smoothly carry out business testing and affecting the normal introduction of business needs into the production environment. The embodiment of the present application provides a software version transmission method, which can meet the different creation policy configuration requirements of each software version file by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the intelligent installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, it can meet the different creation policy configuration requirements of each software version file and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the intelligent installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by generating a corresponding target installation policy package according to the compilation time, compilation version number and hash code of the target intelligent installation policy package version number and hash code, and transmit the target intelligent installation policy package to the target test environment to build the corresponding target software version in the target test environment. This can overcome the problem of automatic installation of the server environment under the parallel incremental release of multiple software versions, and can achieve differentiated incremental coverage of software versions, ensuring that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version files to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers.

[0059] Based on the above content, the present application also provides a software version transmission device for implementing the software version transmission method provided in one or more embodiments of the present application. The software version transmission device can be a server, see Figure 1 , the software version transmission device can communicate and connect with each client device by itself or through a third-party server, etc., and the software version transmission device can also communicate and connect with a target system arranged with a target test environment; the target system can be a production system, and the software version transmission device can receive the target policy package information sent by the client device by itself or through a third-party server, and generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information; the target installation template is packaged and processed, and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version; according to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, and then the software version transmission device can send the software version transmission result to the client device for display, etc.

[0060] In another practical application scenario, the part of the software version transmission device that performs software version transmission can be executed in the server as described above, or all operations can be completed in the user terminal device. The selection can be made based on the processing capability of the user terminal device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the user terminal device, the user terminal device can also include a processor for specific processing of software version transmission.

[0061] It is understandable that the mobile terminal may include any mobile device capable of loading applications, such as a smart phone, a tablet electronic device, a network set-top box, a portable computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, smart watches, smart bracelets, etc.

[0062] The above-mentioned mobile terminal may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0063] The server and the mobile terminal may communicate with each other using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.

[0064] The details are described in detail through the following embodiments and application examples.

[0065] In order to solve the problems of the existing software version transmission method, since it only supports full file overwriting, it is easy to cause the original version file to be erroneously overwritten, thereby making the test environment unavailable, and the new software version cannot be correctly created in the test machine, resulting in the inability to smoothly carry out business testing and affecting the normal delivery of business needs to the production environment. The present application provides an embodiment of a software version transmission method, see Figure 2 The software version transmission method executed by the software version transmission device specifically includes the following contents:

[0066] Step 100: Generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information.

[0067] In step 100, the policy items are pre-created by the user and stored in the software version transmission device or in a database accessible to the software version transmission device. The policy items refer to the unit policy data required to install the software version into the test environment, which are used to form a complete intelligent installation policy package.

[0068] Step 200: The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version.

[0069] In step 200, when the target installation template is packaged, the corresponding compilation time, compilation version number and hash code will be generated at the same time, and the packaged target intelligent installation policy package will contain the contents generated during packaging and all files corresponding to the target software version.

[0070] It can be understood that the hash code can be a SHA1 code or the like.

[0071] Step 300: According to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment.

[0072] Specifically, before the target software version is produced, a new installation strategy can be added for intelligent file transmission, the first purpose is to support intelligent file transmission, and the second purpose is to support automatic installation of the version. For the source files of intelligent transmission, they are fixedly stored in the version in file directories such as "version program / ATOMIC_FILE". This step adds a new strategy package as an intelligent strategy package to realize the transmission of intelligent files.

[0073] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can meet the different creation policy configuration requirements of each software version file by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the intelligent installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by transmitting the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, It can overcome the problem of automatic installation of server environment under parallel incremental release of multiple software versions, and can realize differentiated incremental coverage of software versions, ensuring that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version files to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers.

[0074] In order to meet the different creation strategy configuration requirements of each software version file, an embodiment of the software version transmission method provided in this application is shown in FIG. Figure 3 , step 100 of the software version transmission method specifically includes the following contents:

[0075] Step 110: receiving target policy package information, wherein the target policy package information includes the policy package name of the target policy package, the policy package identifier, and notification information indicating whether the target policy package is a smart package.

[0076] Step 120: If the notification information corresponding to the target policy package information indicates that the installation policy package corresponding to the target policy package information is a smart package, at least one policy item corresponding to the target policy package information is obtained from the pre-stored correspondence between each policy package identifier and each policy item.

[0077] Step 130: Generate a target installation template corresponding to the target policy package information according to at least one policy item, a policy package name, and a policy package identifier corresponding to the target policy package information.

[0078] Specifically, the system obtains the newly added policy package information entered on the page, and records the policy package information into the database policy package table (VACP_INSTALL_POLICY_PKG), which contains information such as "policy package ID", "policy package name", and "whether it is a smart package". The newly added policy package information is entered through the system front end, and the compilation policy table (BUILD_POLICY) can be associated with the "policy package ID". The save as template function can quickly save this policy package as an installation template for compilation.

[0079] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application, if the notification information corresponding to the target policy package information indicates that the installation policy package corresponding to the target policy package information is a smart package, then at least one policy item corresponding to the target policy package information is obtained from the correspondence between each pre-stored policy package identifier and each policy item. This can meet the different creation policy configuration requirements of each software version file and the personalized needs of the test, thereby further improving the applicability and comprehensiveness of software version transmission.

[0080] In order to improve the reliability and effectiveness of building the target software version in the test environment, in an embodiment of the software version transmission method provided in the present application, the target policy package information also includes the initial version number of the target policy package; see Figure 4 The software version transmission method specifically includes the following contents before step 100 and step 200:

[0081] Step 140: Store the initial version number of the target policy package corresponding to the target installation template.

[0082] Specifically, the version number is an important basis for intelligent file transmission. The version containing the intelligent policy package must be verified during the version building process. The version without a set version number will fail to build. The system writes the information into the version information table (VACP_BUILD_VERSION_INFO) through the application environment maintenance interface.

[0083] From the above description, it can be seen that in the software version transmission method provided by the embodiment of the present application, the version number is an important judgment basis for intelligent file transmission. The version containing the intelligent policy package must be verified during the version construction process, and the version without a set version number will fail to build; the system writes information into the version information table through the application environment maintenance interface, thereby effectively improving the reliability and effectiveness of subsequent construction of the target software version in the test environment.

[0084] In order to improve the effectiveness of generating the intelligent installation policy package, an embodiment of the software version transmission method provided in this application is shown in FIG. Figure 5 , step 200 of the software version transmission method specifically includes the following contents:

[0085] Step 210: Packaging the target installation template, generating a compiled version number corresponding to the initial version number of the target policy package, and generating corresponding tags, compilation time and hash codes to obtain a target smart installation policy package of the target software version corresponding to the target policy package information; wherein the target smart installation policy package is also provided with a smart file list, which is used to store the initial version number, compilation time, tag, compiled version number, hash code, all file information and relative paths corresponding to the target software version.

[0086] Specifically, the smart version build will generate the "ATOMIC_FILE.zip" file in the "version program" path. Open "ATOMIC_FILE.zip" and the "ATOMIC_FILE_LIST.txt (smart file list)" will be automatically generated. The first line will be written with: version number; the second line will be written with: compile time; the third line will be written with: baseline / label, the baseline label information of all tasks corresponding to the task; the fourth line will be written with: compile version number; the fifth line will be written with: information of all files (excluding directories) under the smart folder (including subdirectories), the relative path of the file|the SHA1 code of the file, one line for each file. ATOMIC_FILE.zip adds verification information when it is generated. The correctness of this zip package will be verified when the version is imported. The content of this zip file cannot be modified manually.

[0087] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can effectively improve the effectiveness of generating the intelligent installation policy package by generating the target intelligent installation policy package and the setting of the intelligent file list of the target software version corresponding to the target policy package information, and provide a reliable and effective data basis for subsequent software version transmission, thereby further improving the reliability and effectiveness of the software version transmission process.

[0088] In order to improve the efficiency and convenience of software version transmission, an embodiment of the software version transmission method provided in this application is as follows: Figure 6 The software version transmission method further specifically includes the following contents before step 200 and step 300:

[0089] Step 220: Obtain the current environment list of the target test environment;

[0090] Step 230: Determine whether the environment list contains a smart installation policy package with the same policy package name and / or policy package identifier as the target smart installation policy package; if not, transfer the target smart installation policy package to the target test environment based on the target smart installation policy package to build the corresponding target software version in the target test environment, update the environment list of the target test environment based on the target software version, and output the corresponding target software version build result.

[0091] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can effectively improve the efficiency and convenience of software version transmission by first determining whether there is a target software version in the environment, and if not, directly performing file overwriting processing.

[0092] In order to overcome the problem of automatic installation in a server environment under the parallel incremental release of multiple software versions, an embodiment of a software version transmission method provided in this application is provided, see Figure 7 , step 300 in the software version transmission method specifically includes the following contents:

[0093] Step 310: If it is determined that the environment list contains the same smart installation policy package as the target smart installation policy package, determine whether the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment.

[0094] Step 320: If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, and if the hash code corresponding to the target smart installation policy package has covered the hash code of the smart installation policy package in the target test environment, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0095] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can overcome the problem of automatic installation in the server environment under the parallel incremental release of multiple software versions by judging whether the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment. It can achieve differentiated incremental coverage of software versions and ensure that the correct files can still be installed in the target environment even if the version installation order is adjusted.

[0096] In order to further overcome the problem of automatic installation in a server environment under the parallel incremental release of multiple software versions, an embodiment of a software version transmission method provided in this application is provided. Figure 8 , step 300 in the software version transmission method further specifically includes the following contents:

[0097] Step 330: If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, the hash code corresponding to the target smart installation policy package does not cover the hash code of the smart installation policy package in the target test environment, and the target smart installation policy package is a configuration file, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0098] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can further overcome the problem of automatic installation in the server environment under the parallel incremental release of multiple software versions by judging whether the target intelligent installation policy package is a configuration file, and can achieve differentiated incremental coverage of software versions, thereby ensuring that the correct files can still be installed in the target environment when the version installation order is adjusted.

[0099] In order to further overcome the problem of automatic installation in a server environment under the parallel incremental release of multiple software versions, an embodiment of a software version transmission method provided in this application is provided. Fig. 9, step 300 in the software version transmission method further specifically includes the following contents:

[0100] Step 340: If the hash code corresponding to the target smart installation policy package is different from the hash code of the smart installation policy package in the target test environment, determine whether the compiled version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compiled version number of the target smart installation policy package.

[0101] Step 350: If the compilation version number of the smart installation policy package in the environment list that is identical to the target smart installation policy package is identical to the compilation version number of the target smart installation policy package, and the compilation time of the target smart installation policy package is greater than the compilation time of the smart installation policy package in the environment list that is identical to the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0102] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can further overcome the problem of automatic installation of the server environment under the parallel incremental release of multiple software versions by judging whether the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compilation version number of the target smart installation policy package, and judging whether the compilation time of the target smart installation policy package is greater than the compilation time of the smart installation policy package in the environment list that is the same as the target smart installation policy package. It can achieve differentiated incremental coverage of software versions, and ensure that the correct files can still be installed in the target environment when the version installation order is adjusted.

[0103] In order to further overcome the problem of automatic installation in a server environment under the parallel incremental release of multiple software versions, an embodiment of a software version transmission method provided in this application is provided. Fig.10 , step 300 in the software version transmission method further specifically includes the following contents:

[0104] Step 360: If the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is different from the compilation version number of the target smart installation policy package, and the compilation version number of the target smart installation policy package is greater than the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transferred to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

[0105] From the above description, it can be seen that the software version transmission method provided in the embodiment of the present application can further overcome the problem of automatic installation in the server environment under the parallel incremental release of multiple software versions by judging whether the compiled version number of the target smart installation policy package is greater than the compiled version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package. It can achieve differentiated incremental coverage of software versions and ensure that the correct files can still be installed in the target environment even if the version installation order is adjusted.

[0106] Based on the above content, in one embodiment of the software version transmission method provided in the present application, the complete determination process of step 300 in the software version transmission method may specifically include the following content:

[0107] Step 1: Determine whether the environment list of the target test environment contains the same smart installation policy package as the target smart installation policy package;

[0108] If not, proceed to step 2;

[0109] If yes, go to step 3;

[0110] Step 2: Based on the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to perform corresponding file coverage processing, and the environment list of the target test environment is updated, and the corresponding file coverage result is output;

[0111] Step 3: Determine whether the hash code corresponding to the target intelligent installation policy package is the same as the hash code of the intelligent installation policy package in the target test environment;

[0112] If yes, go to step 4;

[0113] If not, proceed to step 7;

[0114] Step 4: Determine whether the hash code corresponding to the target intelligent installation policy package has covered the hash code of the intelligent installation policy package in the target test environment;

[0115] If yes, execute step 2: based on the target intelligent installation policy package, transmit the target intelligent installation policy package to the target test environment to perform corresponding file coverage processing, update the environment list of the target test environment, and output the corresponding file coverage result;

[0116] If not, proceed to step 5;

[0117] Step 5: Determine whether the target intelligent installation policy package is a configuration file;

[0118] If yes, execute step 2: based on the target intelligent installation policy package, transmit the target intelligent installation policy package to the target test environment to perform corresponding file coverage processing, update the environment list of the target test environment, and output the corresponding file coverage result;

[0119] If not, proceed to step 6;

[0120] Step 6: Do not overwrite the files in the target test environment;

[0121] Step 7: Determine whether the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package (such as the smart bank ecosystem version number, etc.) is the same as the compilation version number of the target smart installation policy package;

[0122] If yes, go to step 8;

[0123] If not, proceed to step 9;

[0124] Step 8: Determine whether the compilation time of the smart installation policy package in the environment list that is the same as the target smart installation policy package is greater than the compilation time of the target smart installation policy package;

[0125] If yes, go to step 6: do not overwrite the target test environment file;

[0126] If not, executing step 2: based on the target intelligent installation policy package, transmitting the target intelligent installation policy package to the target test environment to perform corresponding file coverage processing, and updating the environment list of the target test environment, and outputting the corresponding file coverage result;

[0127] Step 9: Determine whether the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package (such as the smart bank ecosystem version number, etc.) is greater than the compilation version number of the target smart installation policy package;

[0128] If yes, go to step 6: do not overwrite the target test environment file;

[0129] If not, execute step 2: based on the target intelligent installation policy package, transmit the target intelligent installation policy package to the target test environment to perform corresponding file coverage processing, update the environment list of the target test environment, and output the corresponding file coverage result.

[0130] From the software level, in order to solve the existing software version transmission method, since it only supports full file overwriting, it is easy to cause the original version file to be erroneously overwritten, thereby making the test environment unavailable, and the new software version cannot be correctly created in the test machine, resulting in the inability to smoothly carry out business testing and affecting the normal delivery of business needs to the production environment. The present application provides an embodiment of a software version transmission device for executing all or part of the content of the software version transmission method, see Fig.11 , the software version transmission device specifically includes the following contents:

[0131] The template generation module 10 is used to generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information.

[0132] The policy package creation module 20 is used to package the target installation template and generate the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version.

[0133] The version transmission module 30 is used to transmit the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment.

[0134] The embodiment of the software version transmission device provided in the present application can be specifically used to execute the processing flow of the embodiment of the software version transmission method in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned method embodiment.

[0135] From the above description, it can be seen that the software version transmission device provided in the embodiment of the present application can meet the different creation policy configuration requirements of each software version file by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target intelligent installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the intelligent installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by transmitting the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, It can overcome the problem of automatic installation of server environment under parallel incremental release of multiple software versions, and can realize differentiated incremental coverage of software versions, ensuring that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version files to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers.

[0136] How to maintain the testability and stability of the test environment and ensure the consistency of the operating status of the test environment and the production environment is a pain point for testers at present.

[0137] Traditional versions are automatically installed, and file transfer only supports full file coverage. It cannot automatically determine the files in the code-level coverage environment based on version numbers and compilation time. When multiple versions are running in parallel, the test environment has repeatedly encountered situations where the original version files were incorrectly overwritten due to different version installation orders, resulting in the inability to conduct business tests smoothly, affecting the normal implementation of business needs in the production environment.

[0138] In response to the above problems, the application example of this application designs a code-level software version transmission method, which belongs to the field of automatic deployment file transmission technology in server environment. It overcomes the problem of automatic installation of server environment under multi-version parallel incremental release, and realizes differentiated incremental coverage of versions. It ensures that when the version installation order is adjusted, the correct files can still be installed in the target environment. It strives to solve the current problem of automatic installation errors in server environment and improve the testability of the environment.

[0139] See also Fig.12 The software version transmission method provided by the application example of this application includes four parts: installation strategy transformation, configuration version number, automatic version construction, and intelligent file transmission. The main modules and functions of each part are as follows:

[0140] 1. Installation strategy transformation:

[0141] Before making a version, a new installation strategy should be added for intelligent file transfer. The first purpose is to support intelligent file transfer, and the second purpose is to support automatic installation of the version. For the source files of intelligent transfer, they are fixedly stored in the "version program / ATOMIC_FILE" directory in the version. This step adds a new strategy package as an intelligent strategy package to realize the transmission of intelligent files.

[0142] The system obtains the newly added policy package information entered on the page, and records the policy package information in the database policy package table (VACP_INSTALL_POLICY_PKG), which contains information such as "policy package ID", "policy package name", and "whether it is a smart package". The newly added policy package information is entered through the system front end, and the compilation policy table (BUILD_POLICY) can be associated with the "policy package ID". The save as template function can quickly save this policy package as an installation template for compilation. Among them, the correspondence between the policy package table and the compilation policy table can be seen in Fig.13 .

[0143] 2. Configure the version number

[0144] The version number is an important basis for intelligent file transmission. The version containing the intelligent policy package must be verified during the version building process. The version without a set version number will fail to build. The system writes the information into the version information table (VACP_BUILD_VERSION_INFO) through the application environment maintenance interface.

[0145] 3. Version construction

[0146] Smart version building will generate the "ATOMIC_FILE.zip" file in the "version program" path. Open "ATOMIC_FILE.zip" and "ATOMIC_FILE_LIST.txt (smart file list)" will be automatically generated. The first line is written with: version number; the second line is written with: compile time; the third line is written with: baseline / label, baseline label information of all tasks corresponding to the task; the fourth line is written with: compile version number; the fifth line is written with: information of all files (excluding directories) under the smart folder (including subdirectories), the relative path of the file|the SHA1 code of the file, one line for each file. ATOMIC_FILE.zip adds verification information when it is generated. The correctness of this zip package will be verified when the version is imported. The content of this zip file cannot be modified manually.

[0147] 4. Intelligent file transfer

[0148] The device will record the installation file list of each environment, including the SHA1 code, compilation version number, compilation time, version number and other information of each file, see Fig.14 ,The execution logic of intelligent file transfer is as follows:

[0149] a. If the current file does not exist in the environment, overwrite it;

[0150] b. If the SHA1 code of the current version file is the same as that of the environment file;

[0151] ① If the partition parameter AtomicSHA1SameCoverFlag is true, return coverage, otherwise no coverage.

[0152] ②If the partition parameter AtomicSHA1SameCoverFlag is false and it is a configuration file, it returns to overwrite, otherwise it does not overwrite.

[0153] c. If the SHA1 code of the current version file is different from that of the environment file

[0154] ① The file version number in the environment list is greater than the version number in the version list and will not be overwritten;

[0155] ② The file version number in the environment list is smaller than the version number in the version list;

[0156] ③ The file version number in the environment list is equal to the version number of the version list. It is judged based on the compilation time: if the compilation time of the environment list is less than or equal to the compilation time of the version list, it will be overwritten, otherwise it will not be overwritten.

[0157] After each intelligent transfer item is completed, for the overwritten files, the file information in the environment is updated, and the file information in the environment is overwritten with the file information in the version.

[0158] For installation tasks that include intelligent file transfer, after successful execution, the intelligent file coverage list is available for download. The list includes information about each intelligent file involved in this task, information about files with the same name in the environment, and coverage results.

[0159] In order to further illustrate the present solution, the present application also provides an example 1 of a software version transmission method, which specifically includes the following contents:

[0160] The test environment must always be consistent with production to ensure the correctness of the business testing process. Taking the May version of personal mobile banking in a certain bank's Asian Grayscale temporary service group as an example, the group has completed the intelligent file transfer transformation. At present, the server environment has installed the May version V1.16.0425.0, the device records the environmental information, and checks the ATOMIC_FILE_LIST.txt information. On the same day, the April version of the production patch V1.15.06001.0 was delivered. If there is no transformation, an error will be reported during installation, the environmental information is inconsistent with production, and business testing cannot be carried out. After the transformation, the device will automatically implement intelligent file transfer. For example, SUSE / WEB server (overseas four districts) / xxbcWAPUS / abroadperbank / downLoad / abroadperbank.zip, the May version V1.16.0425.0 is the same as the April version V1.15.06001.0 production patch, but the SHA1 code is different, and the May version V1.16.0425.0 is the May version of the server environment file that has been installed. The version number is greater than the April version of the April production patch V1.15.06001.0, so the file will not be transferred, and the server environment always keeps the latest code level. Files that do not exist in the environment will be transferred.

[0161] In order to further illustrate the present solution, the present application also provides an example 2 of a software version transmission method, which specifically includes the following contents:

[0162] Since the version is delivered according to the requirements, the test environment often faces versions of multiple production points, which meets the test patch version environment testing on different production days, that is, multi-version parallel testing. The intelligent file transfer device can meet the requirements of business testing adequacy.

[0163] The software version transmission method provided by the application example of this application has the following beneficial effects:

[0164] 1. This technical method aims at the installation problem of multi-version parallel incremental release server environment. The proposed code-level intelligent file transfer design is very flexible and avoids the occurrence of file overwriting caused by different version installation orders.

[0165] 2. This technical method greatly improves the testability of the server environment. Faced with the increasing number of versions, the technical staff only needs to make modifications according to the technical plan, and the entire subsequent process will be completely automatically implemented by the system without human intervention.

[0166] 3. This technical solution is a general method and idea for version testing, which can be widely promoted and used to improve the efficiency and quality of environmental testing and provide an automated level for version installation.

[0167] From the hardware level, in order to solve the existing software version transmission method, since it only supports full file overwriting, there is a situation that the original version file is easily overwritten by mistake, which makes the test environment unavailable, and the new software version cannot be correctly created in the test machine, resulting in the inability to smoothly carry out business testing and affecting the normal delivery of business needs to the production environment. The present application provides an embodiment of an electronic device for implementing all or part of the content of the software version transmission method, and the electronic device specifically includes the following content:

[0168] Fig.15 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.15 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.15 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0169] In one embodiment, the software version transmission function may be integrated into the central processing unit. The central processing unit may be configured to perform the following control:

[0170] Step 100: Generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information.

[0171] Step 200: The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version.

[0172] Step 300: According to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment.

[0173] From the above description, it can be seen that the electronic device provided in the embodiment of the present application can meet the different creation policy configuration requirements of each software version file by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target smart installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the smart installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by transmitting the target smart installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target smart installation policy package to build the corresponding target software version in the target test environment, it can It overcomes the problem of automatic installation of server environment under parallel incremental release of multiple software versions, can realize differentiated incremental coverage of software versions, and ensures that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment. Even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version files to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers.

[0174] In another embodiment, the software version transmission device may be configured separately from the central processing unit 9100. For example, the software version transmission device may be configured as a chip connected to the central processing unit 9100, and the software version transmission function may be implemented under the control of the central processing unit.

[0175] like Fig.15 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.15 In addition, the electronic device 9600 may also include Fig.15 For components not shown, reference may be made to the prior art.

[0176] like Fig.15As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0177] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0178] The input unit 9120 provides input to the central processing unit 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 to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0179] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. 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 unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0180] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0181] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0182] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0183] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the software version transmission method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the software version transmission method in the above embodiments are implemented by the execution subject being a server or a client. For example, when the processor executes the computer program, the following steps are implemented:

[0184] Step 100: Generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information.

[0185] Step 200: The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version.

[0186] Step 300: According to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment.

[0187] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application can meet the different creation policy configuration requirements of each software version file by generating a corresponding target installation template according to at least one policy item corresponding to the target policy package information, and can effectively improve the applicability and comprehensiveness of software version transmission; by packaging the target installation template and generating the corresponding compilation time, compilation version number and hash code to obtain the target smart installation policy package corresponding to the target software version, it can effectively improve the effectiveness of generating the smart installation policy package and provide a reliable and effective data basis for subsequent software version transmission; by transmitting the target smart installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target smart installation policy package to build the corresponding target software version in the target test environment , can overcome the problem of automatic installation of server environment under parallel incremental release of multiple software versions, can realize differentiated incremental coverage of software versions, and ensure that the correct files can still be installed in the target environment when the version installation order is adjusted; that is, the present application can create a target software version that is not created in the original installation order in a test environment that has at least one software version installed, thereby meeting the need to create different software versions multiple times in a test environment, and even if the software versions created in the test environment are not created in the original installation order, the new target software version can be correctly installed without causing the original version files to be erroneously overwritten, thereby effectively improving the application effectiveness and reliability of the test environment, allowing business testing to proceed smoothly and ensuring that business needs are normally put into the production environment, and improving the user experience of testers.

[0188] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0189] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0190] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0192] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A software version transmission method, characterized in that: include: Generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information; The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation policy package corresponding to the target software version; According to the compilation time, compilation version number and hash code of the target intelligent installation policy package, the target intelligent installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment; Generating a target installation template including a target software version according to at least one policy item corresponding to the target policy package information includes: Receive target policy package information, wherein the target policy package information includes a policy package name, a policy package identifier, and notification information indicating whether the target policy package is a smart package; If the notification information corresponding to the target policy package information indicates that the installation policy package corresponding to the target policy package information is a smart package, obtaining at least one policy item corresponding to the target policy package information from the pre-stored correspondence between each policy package identifier and each policy item; A target installation template corresponding to the target policy package information is generated according to at least one policy item, a policy package name, and a policy package identifier corresponding to the target policy package information.

2. The software version transmission method according to claim 1, characterized in that: The target policy package information also includes the initial version number of the target policy package; Correspondingly, before packaging the target installation template, the method further includes: The initial version number of the target policy package corresponding to the target installation template is stored.

3. The software version transmission method according to claim 2, characterized in that: The target installation template is packaged and the corresponding compilation time, compilation version number and hash code are generated to obtain a target intelligent installation strategy package corresponding to the target software version, including: The target installation template is packaged to generate a compiled version number corresponding to the initial version number of the target policy package, and a corresponding label, compilation time and hash code are generated to obtain a target intelligent installation policy package of the target software version corresponding to the target policy package information; The target intelligent installation strategy package is also provided with an intelligent file list, which is used to store the initial version number, compilation time, label, compilation version number, hash code, all file information and relative path corresponding to the target software version.

4. The software version transmission method according to claim 3, characterized in that: Before transmitting the target intelligent installation policy package to the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package to build the corresponding target software version in the target test environment, the method further includes: Get the current environment list of the target test environment; Determine whether the environment list contains a smart installation policy package with the same policy package name and / or policy package identifier as the target smart installation policy package; if not, transfer the target smart installation policy package to the target test environment based on the target smart installation policy package to build the corresponding target software version in the target test environment, update the environment list of the target test environment based on the target software version, and output the corresponding target software version build result.

5. The software version transmission method according to claim 4, characterized in that: The method of transmitting the target intelligent installation policy package to a target test environment to build a corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package includes: If it is determined that the environment list contains a smart installation policy package that is the same as the target smart installation policy package, then determining whether the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment; If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, and if the hash code corresponding to the target smart installation policy package has covered the hash code of the smart installation policy package in the target test environment, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

6. The software version transmission method according to claim 5, characterized in that: The step of transmitting the target intelligent installation policy package to a target test environment to build a corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package further includes: If the hash code corresponding to the target smart installation policy package is the same as the hash code of the smart installation policy package in the target test environment, the hash code corresponding to the target smart installation policy package does not cover the hash code of the smart installation policy package in the target test environment, and the target smart installation policy package is a configuration file, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

7. The software version transmission method according to claim 6, characterized in that: The step of transmitting the target intelligent installation policy package to a target test environment to build a corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package further includes: If the hash code corresponding to the target smart installation policy package is different from the hash code of the smart installation policy package in the target test environment, determining whether the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compilation version number of the target smart installation policy package; If the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is the same as the compilation version number of the target smart installation policy package, and the compilation time of the target smart installation policy package is greater than the compilation time of the smart installation policy package in the environment list that is the same as the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

8. The software version transmission method according to claim 7, characterized in that: The step of transmitting the target intelligent installation policy package to a target test environment to build a corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package further includes: If the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package is different from the compilation version number of the target smart installation policy package, and the compilation version number of the target smart installation policy package is greater than the compilation version number of the smart installation policy package in the environment list that is the same as the target smart installation policy package, then based on the target smart installation policy package, the target smart installation policy package is transmitted to the target test environment to build the corresponding target software version in the target test environment, the environment list of the target test environment is updated based on the target software version, and the corresponding target software version construction result is output.

9. A software version transmission device, characterized in that: include: A template generation module, used to generate a corresponding target installation template according to at least one policy item corresponding to the target policy package information; A policy package creation module is used to package the target installation template and generate the corresponding compilation time, compilation version number and hash code to obtain a target intelligent installation policy package corresponding to the target software version; A version transmission module, for transmitting the target intelligent installation policy package to a target test environment to build a corresponding target software version in the target test environment according to the compilation time, compilation version number and hash code of the target intelligent installation policy package; The template generation module is specifically used for: Receive target policy package information, wherein the target policy package information includes a policy package name, a policy package identifier, and notification information indicating whether the target policy package is a smart package; If the notification information corresponding to the target policy package information indicates that the installation policy package corresponding to the target policy package information is a smart package, obtaining at least one policy item corresponding to the target policy package information from the pre-stored correspondence between each policy package identifier and each policy item; A target installation template corresponding to the target policy package information is generated according to at least one policy item, a policy package name, and a policy package identifier corresponding to the target policy package information.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the software version transmission method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the software version transmission method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.