Software testing environment deployment method, device and equipment and readable storage medium
By responding to environmental deployment instructions on the central processor of the target server, determining and installing the installation package of the adapted target programming tool, and generating an isolated operating environment, the problems of inefficient deployment and error-prone software testing environment in the prior art are solved, and automated deployment and efficient software testing environment are realized.
Patent Information
- Application Number
- CN202510344161.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-06-10
AI Technical Summary
There is a lack of a mature software testing environment deployment method in the prior art, resulting in inefficient deployment and prone to errors.
The central processor of the target server responds to the environment deployment instructions, determines the installation package of the adapted target programming tool, and generates a target operating environment isolated from the operating environment of other programming tooling tools of the target server, and installs the corresponding dependency package to achieve automated software testing.
It realizes an automated deployment of software testing environment, reduces labor costs and error probability, improves deployment efficiency, and does not require tedious modifications when deploying different test environments on the same server.
Smart Images

Figure CN120123255A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software testing, and in particular, to a method, device, equipment and readable storage medium for deploying a software testing environment. Background Art
[0002] The testing of server software is of great significance for ensuring the reliability of server software. Before testing the server software, it is usually necessary to deploy a software testing environment. However, in the related art, there is a lack of a mature method for deploying a software testing environment. Usually, it is necessary for manual labor to deploy the software testing environment for the server, which not only has low deployment efficiency but also is prone to errors.
[0003] Therefore, how to provide a solution to the above technical problems is what those skilled in the art need to solve currently. Summary of the Invention
[0004] The object of the present invention is to provide a method, device, equipment and readable storage medium for deploying a software testing environment. The central processing unit of the target server can, in response to an environment deployment instruction, determine an installation package of a target programming tool adapted to the target server, and then generate a target running environment (isolated from the running environments of other programming tools in the target server) for the target programming tool based on the installation package. Furthermore, by installing a dependency package corresponding to the target programming tool in the target running environment, software automated testing can be carried out. Not only can the deployment of the software testing environment be automated through the environment deployment instruction, reducing the labor cost and error probability and improving the deployment efficiency, but also when deploying different software testing environments on the same server, there is no need for cumbersome modification, avoiding the modification of the already deployed software testing environment.
[0005] To solve the above technical problems, the present invention provides a method for deploying a software testing environment, which is applied to the central processing unit of a target server and includes:
[0006] In response to an environment deployment instruction, determine an installation package of a target programming tool adapted to the target server;
[0007] Install the installation package of the target programming tool to a specified path of the target server;
[0008] Based on the target programming tool in the specified path, generate a target running environment for the target programming tool, where the target running environment is isolated from the running environments of other programming tools in the target server;
[0009] Install a dependency package corresponding to the target programming tool in the target running environment so as to perform software automated testing based on the target running environment.
[0010] On the other hand, the installation package of the target programming tool determined in response to the environment deployment instruction includes:
[0011] In response to the environment deployment instruction, obtain the operating bit number of the operating system of the target server and use it as the target operating bit number;
[0012] Determine whether a specified type of programming tool exists on the target server;
[0013] If the specified type does not exist, use the programming tool of the default type and default version that adapts to the target operating bit number as the target programming tool;
[0014] If the specified type exists, determine whether a specified version of the programming tool of the specified type exists on the target server;
[0015] If the specified version exists, use the programming tool of the specified type and specified version that adapts to the target operating bit number as the target programming tool;
[0016] If the specified version does not exist, use the programming tool of the specified type and default version that adapts to the target operating bit number as the target programming tool;
[0017] Obtain the installation package of the target programming tool.
[0018] On the other hand, based on the target programming tool in the specified path, generating a target running environment for the target programming tool includes:
[0019] Determine whether a target type of running environment exists on the target server;
[0020] If it exists, generate a target running environment of the target type for the target programming tool based on the target programming tool in the specified path;
[0021] If it does not exist, generate a target running environment of the default type for the target programming tool based on the target programming tool in the specified path.
[0022] On the other hand, the default type of the programming tool includes a crawler tool;
[0023] The default type of the running environment includes a virtual environment for the crawler tool.
[0024] On the other hand, installing the installation package of the target programming tool to the specified path of the target server includes:
[0025] Install the installation package of the target programming tool to the specified path of the target server by means of silent installation.
[0026] On the other hand, installing the dependency package corresponding to the target programming tool in the target operating environment includes:
[0027] Determining preset parameters related to the dependency package of the target programming tool adapted to the target server;
[0028] Determining the dependency package corresponding to the target programming tool according to the first correspondence relationship, where the first correspondence relationship is the correspondence relationship between the parameters of the programming tool and the dependency package of the programming tool;
[0029] Installing the dependency package corresponding to the target programming tool in the target operating environment.
[0030] On the other hand, the software test environment deployment method further includes:
[0031] Responding to the update instruction to update the first correspondence relationship.
[0032] To solve the above technical problems, the present invention also provides a software test environment deployment device, which is applied to the central processing unit of the target server and includes:
[0033] The first determination module is used to determine the installation package of the target programming tool adapted to the target server in response to the environment deployment instruction;
[0034] The first installation module is used to install the installation package of the target programming tool to the specified path of the target server;
[0035] The first generation module is used to generate a target operating environment for the target programming tool based on the target programming tool in the specified path, where the target operating environment is isolated from the operating environments of other programming tools in the target server;
[0036] The second installation module is used to install the dependency package corresponding to the target programming tool in the target operating environment for software automation testing based on the target operating environment.
[0037] To solve the above technical problems, the present invention also provides a software test environment deployment device, including:
[0038] A memory for storing computer programs;
[0039] A processor for implementing the steps of the software test environment deployment method as described above when executing the computer program.
[0040] To solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the software test environment deployment method as described above are implemented.
[0041] Beneficial effects: The present invention provides a method for deploying a software test environment. Considering the "operating environment isolated from the operating environments of other programming tools in the target server", it can support software automated testing without affecting the operating environments of other programming tools in the target server. Therefore, in the present invention, the central processing unit of the target server can respond to the environment deployment instruction, determine the installation package of the target programming tool adapted to the target server, and then generate a target operating environment (isolated from the operating environments of other programming tools in the target server) for the target programming tool based on the installation package. Furthermore, by installing the dependency package corresponding to the target programming tool in the target operating environment, software automated testing can be carried out. Not only can the deployment of the software test environment be automatically achieved through the environment deployment instruction, reducing the labor cost and error probability and improving the deployment efficiency, but also when deploying different software test environments on the same server, there is no need for cumbersome modification, avoiding the modification of the already deployed software test environment.
[0042] The present invention also provides a software test environment deployment device, equipment, and readable storage medium, which have the same beneficial effects as the above software test environment deployment method. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the related art and embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0044] Figure 1 It is a flowchart of a method for deploying a software test environment provided by the present invention;
[0045] Figure 2 It is a layout diagram of a virtual environment in a server provided by the present invention;
[0046] Figure 3 It is a flowchart of another method for deploying a software test environment provided by the present invention;
[0047] Figure 4 It is a structural diagram of a software test environment deployment device provided by the present invention;
[0048] Figure 5 It is a structural diagram of a software test environment deployment device provided by the present invention;
[0049] Figure 6 It is a structural diagram of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] The core of the present invention is to provide a method, device, equipment and readable storage medium for deploying a software test environment. The central processing unit of the target server can, in response to an environment deployment instruction, determine an installation package of a target programming tool adapted to the target server, and then generate a target operating environment (isolated from the operating environments of other programming tools in the target server) based on the installation package. Furthermore, by installing a dependency package corresponding to the target programming tool in the target operating environment, software automated testing can be carried out. Not only can the deployment of the software test environment be automated through the environment deployment instruction, reducing labor costs and error probabilities and improving deployment efficiency, but also when deploying different software test environments on the same server, there is no need for cumbersome modification, avoiding the modification of the already deployed software test environment.
[0051] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0052] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for deploying a software test environment provided by the present invention. This method for deploying a software test environment is applied to the central processing unit of a target server and includes:
[0053] S101: In response to an environment deployment instruction, determine an installation package of a target programming tool adapted to the target server;
[0054] Specifically, considering the technical problems in the above background art and also considering the "operating environment isolated from the operating environments of other programming tools in the target server", which can not only support software automated testing but also not affect the operating environments of other programming tools in the target server. Therefore, the present invention aims to achieve the automated deployment of the target operating environment (isolated from the operating environments of other programming tools in the target server), thereby reducing the labor cost of software test environment deployment and also reducing errors caused by human negligence. Moreover, due to the isolation characteristics of the target operating environment, even if different types of test environments need to be generated on the target server, multiple software test environment deployments can be carried out flexibly and efficiently according to the deployment method in the embodiments of the present invention without changing the existing environment in the target server.
[0055] Specifically, considering that the purpose of deploying the target operating environment is to run the target programming tool through the target operating environment to implement automated software testing, and the target programming tool needs to be a programming tool adapted to the target server, therefore, in this step, first, in response to the environment deployment instruction, the installation package of the target programming tool adapted to the target server can be determined, so as to use it as the data basis for subsequent steps.
[0056] Among them, the source of the environment deployment instruction can be various. For example, it can be received through the human-computer interaction interface, sent through the remote control terminal, or automatically generated based on the logic in the target server, etc. The embodiments of the present invention do not make limitations here.
[0057] Specifically, the operating system of the target server can be of various types. For example, it can be Linux or Windows, etc. The embodiments of the present invention do not make limitations here.
[0058] S102: Install the installation package of the target programming tool to the specified path of the target server;
[0059] Specifically, considering the execution of the automated software testing process depends on the programming tool running in the target server, therefore, in the embodiments of the present invention, the installation package of the target programming tool can be installed to the specified path of the target server, so that the subsequent generated target operating environment can implement the automated testing of the server software based on the installed target programming tool.
[0060] Among them, the specified path can be set independently and flexibly. The embodiments of the present invention do not make limitations here.
[0061] S103: Generate a target operating environment for the target programming tool based on the target programming tool in the specified path, where the target operating environment is isolated from the operating environments of other programming tools in the target server;
[0062] Specifically, after the target programming tool is installed, a target operating environment can be generated based on the target programming tool in the specified path, and the target operating environment is isolated from the operating environments of other programming tools in the target server. Therefore, the generation of the target operating environment will not affect other existing environments in the target server (regardless of whether they belong to the operating environments isolated from the operating environments of other programming tools in the target server). It is precisely because of this feature that multiple different target operating environments can be supported on the target server. For example, Person A first generates a target operating environment on the target server for software automation testing. Subsequently, Person B also wants to conduct software automation testing on the target server. Without modifying the existing operating environment on the target server, Person B can automatically generate the target operating environment through the environment deployment instruction to deploy the software test environment, that is, it eliminates the need to "modify the existing operating environment in the target server", which not only further improves the deployment efficiency of the software test environment but also further reduces the probability of errors in environment deployment.
[0063] S104: Install the dependency package corresponding to the target programming tool in the target operating environment to perform software automation testing based on the target operating environment.
[0064] Specifically, since the programming tool requires relevant dependency packages during operation, in this step, the dependency package corresponding to the target programming tool can be installed in the target operating environment. In this way, software automation testing can be performed through the target programming tool in the target operating environment.
[0065] The present invention provides a method for deploying a software test environment. Considering the "operating environment isolated from the operating environments of other programming tools in the target server", it can support software automation testing and will not affect the operating environments of other programming tools in the target server. Therefore, in the present invention, the central processing unit of the target server can respond to the environment deployment instruction, determine the installation package of the target programming tool adapted to the target server, and then generate a target operating environment (isolated from the operating environments of other programming tools in the target server) for the target programming tool based on the installation package. Furthermore, by installing the dependency package corresponding to the target programming tool in the target operating environment, software automation testing can be performed. It can not only automatically implement the deployment of the software test environment through the environment deployment instruction, reduce the labor cost and error probability, and improve the deployment efficiency, but also avoid the need for cumbersome modifications and the modification of the already deployed software test environment when deploying different software test environments on the same server.
[0066] Based on the above embodiments:
[0067] As an alternative embodiment, in response to an environment deployment instruction, determining the installation package of the target programming tool adapted to the target server includes:
[0068] In response to the environment deployment instruction, obtain the operating bit number of the operating system of the target server and use it as the target operating bit number;
[0069] Determine whether a specified type of programming tool exists on the target server;
[0070] If the specified type does not exist, use the programming tool of the default type and default version adapted to the target operating bit number as the target programming tool;
[0071] If the specified type exists, determine whether a specified version of the programming tool of the specified type exists on the target server;
[0072] If the specified version exists, use the programming tool of the specified type and specified version adapted to the target operating bit number as the target programming tool;
[0073] If the specified version does not exist, use the programming tool of the specified type and default version adapted to the target operating bit number as the target programming tool;
[0074] Obtain the installation package of the target programming tool.
[0075] Specifically, considering that the programming tool needs to conform to the operating bit number of the operating system of the target server, in the embodiments of the present invention, in response to the environment deployment instruction, the operating bit number of the operating system of the target server can be obtained first and used as the target operating bit number. Also considering that the staff may need to specify the type (or further including the specified version) of the programming tool, in the embodiments of the present invention, it can be further determined whether a specified type of programming tool exists on the target server. If the specified type does not exist, the programming tool of the default type and default version adapted to the target operating bit number can be used as the target programming tool. If the specified type exists, then it can be further determined whether a specified version of the programming tool of the specified type exists. If the specified version exists, the programming tool of the specified type and specified version adapted to the target operating bit number can be used as the target programming tool, otherwise the programming tool of the specified type and default version adapted to the target operating bit number can be used as the target programming tool, and then the installation package of the target programming tool can be obtained.
[0076] Among them, the default type and default version can be flexibly and automatically set, and the embodiments of the present invention do not make limitations here.
[0077] As an alternative embodiment, based on the target programming tool in the specified path, generating a target running environment for the target programming tool includes:
[0078] Determine whether the target server has the target type of the operating environment;
[0079] If it exists, based on the target programming tool in the specified path, generate a target operating environment of the target type for the target programming tool;
[0080] If it does not exist, based on the target programming tool in the specified path, generate a target operating environment of the default type for the target programming tool.
[0081] Specifically, considering that there are multiple different types of operating environments with isolation characteristics (that is, isolated from the operating environments of other programming tools in the target server), and the staff may specify the type of the operating environment. Therefore, in the embodiments of the present invention, it can be determined whether the target server has the target type of the operating environment. If it exists, based on the target programming tool in the specified path, a target operating environment of the target type can be generated for the target programming tool. Otherwise, based on the target programming tool in the specified path, a target operating environment of the default type can be generated for the target programming tool.
[0082] Among them, the default type of the operating environment can be flexibly and independently set, and the embodiments of the present invention do not limit this here.
[0083] As an optional embodiment, the default type of the programming tool includes a crawler tool;
[0084] The default type of the operating environment includes a virtual environment for the crawler tool.
[0085] Specifically, to better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2 which is a layout diagram of the virtual environment in a server provided by the present invention. Figure 2 In the target server in, three virtual environments have been deployed, namely the first virtual environment built based on the programming tool of the first version (such as 2.7.0), the second virtual environment built based on the programming tool of the second version (such as 3.6.0), and the third virtual environment built based on the programming tool of the third version (such as 3.11.0). Each virtual environment can run independently and is not affected by each other; the virtual environment includes a programming tool executor, a virtual environment activator, and a programming tool dependency package. Under the virtual environment, the script of the programming tool can be run through the programming tool executor, and the virtual environment can be activated through the virtual environment activator. After activation, the programming tool executor and the programming tool dependency package in the virtual environment can be used under the CMD (Command Prompt) command line to perform automated tests on the server software.
[0086] Specifically, considering that the crawler tool (Python) is mature, stable and efficient, and the virtual environment (VENV, Virtual Environment) of the crawler tool can support the creation of a lightweight "virtual environment". The virtual environment of the crawler tool is created on the existing Python installation of the server. The existing Python of the server is called the "base" Python of the virtual environment, and the virtual environment is isolated from the installation packages in the base environment. Therefore, in the embodiments of the present invention, the default type of the programming tool includes the crawler tool, and the default type of the running environment includes the virtual environment of the crawler tool.
[0087] Of course, in addition to these two specific forms, the default types of the programming tool and the running environment can also be other various types, which are not limited in the embodiments of the present invention.
[0088] As an alternative embodiment, installing the installation package of the target programming tool to the specified path of the target server includes:
[0089] Installing the installation package of the target programming tool to the specified path of the target server by means of silent installation.
[0090] Specifically, considering that the silent installation of the programming tool can achieve the installation effect without the user's perception, thereby reducing the impact of software testing work on the user and being beneficial to improving the user experience. Therefore, in the embodiments of the present invention, the installation package of the target programming tool can be installed to the specified path of the target server by means of silent installation.
[0091] As an alternative embodiment, installing the dependency package corresponding to the target programming tool in the target running environment includes:
[0092] Determining the preset parameters related to the dependency package of the target programming tool adapted to the target server;
[0093] Determining the dependency package corresponding to the target programming tool according to the first correspondence relationship, where the first correspondence relationship is the correspondence relationship between the parameters of the programming tool and the dependency package of the programming tool;
[0094] Installing the dependency package corresponding to the target programming tool in the target running environment.
[0095] Specifically, considering that there are differences in the dependent packages required for the operation of different programming tools, and the dependent packages required for the operation of programming tools are correlated with the relevant parameters of the programming tools, in the embodiments of the present invention, a first correspondence relationship (i.e., the correspondence relationship between the parameters of the programming tool and the dependent packages of the programming tool) can be preset in advance. During the deployment process, the preset parameters related to the dependent packages of the target programming tool adapted to the target server can be determined. Then, according to the first correspondence relationship, the dependent packages corresponding to the target programming tool can be determined, and the dependent packages required for the operation of the target programming tool can be efficiently and accurately determined and installed, which is beneficial to improving the efficiency and accuracy of the software test environment deployment work.
[0096] Among them, the preset parameters can include various types. For example, they can include the version of the target programming tool, etc. The embodiments of the present invention do not limit this here.
[0097] To better illustrate the embodiments of the present invention, please refer to Figure 3 , Figure 3 which is a schematic flowchart of another software test environment deployment method provided by the present invention. In this process, first, the operating bit number of the operating system can be obtained. Then, it can be determined whether the version of the programming tool is specified. If it is specified, the installation package of the specified version can be downloaded. If it is not specified, the installation package of the default version can be downloaded. Then, the programming tool can be installed silently. Furthermore, a virtual environment can be generated based on the installed programming tool, and after activating the virtual environment, the dependent packages of the programming tool can be installed, and thus the automated deployment of the software test environment can be completed.
[0098] Specifically, the software test environment deployment work in the embodiments of the present invention has the following advantages:
[0099] Improve efficiency: Automated deployment greatly reduces the manual configuration time and labor input, and the test team can quickly start and execute test tasks. Ensure consistency: The Venv isolation environment ensures that the Python versions and dependent libraries of different test projects are independent of each other, avoiding interference and ensuring accurate and consistent test results. Reduce error rate: Reduce the number of manual operation steps and reduce the risk of environmental instability or test failure caused by manual configuration errors. Facilitate maintenance and reuse: The automated scripts are convenient to maintain and update. When there are new test dependencies or Python version updates, only the scripts need to be modified, and the scripts can be reused in multiple projects or servers. Flexible and scalable: Different Python versions can be selected or different dependent libraries can be installed according to test requirements to adapt to various test scenarios.
[0100] As an optional embodiment, the software test environment deployment method further includes:
[0101] Responding to the update instruction to update the first correspondence relationship.
[0102] Specifically, considering that the correspondence between the parameters of the programming tool and the dependent packages of the programming tool may need to be updated in some cases, a modification interface for the first correspondence is provided in the embodiments of the present invention. That is, in response to an update instruction, the first correspondence can be updated, which can achieve efficient and accurate update of the first correspondence, thereby ensuring the accurate dependent packages required for the operation of the target deployment tool to be installed.
[0103] In addition, as an alternative embodiment, the target server may be a management server in a server cluster, and the environment deployment instruction includes a list of servers in the server cluster; determining the installation package of the target programming tool adapted to the target server includes: for any server in the server list, determining the installation package of the target programming tool adapted to the server; installing the installation package of the target programming tool to the specified path of the target server includes: for any server in the server list, installing the installation package of the target programming tool to the specified path of the server.
[0104] Specifically, considering the need to deploy the software test environment for each server in the server cluster simultaneously, the target server in the embodiments of the present invention may be a management server in the server cluster, and the environment deployment instruction includes a list of servers in the server cluster. Then, in the embodiments of the present invention, for any server in the server list, the embodiments of the software test environment deployment method in any of the foregoing embodiments can be executed, thereby further improving the deployment efficiency of the software test environment.
[0105] In addition, as an alternative embodiment, for the dependent packages of the target programming tool and their corresponding dependent packages, after obtaining the installation package and the dependent packages, a preset security check item can be performed on the installation package and / or the dependent packages first. After the check, the installation work can be carried out, otherwise an alarm can be given to prevent malicious software or tampered software from being installed on the server.
[0106] Among them, the preset security check items can include various types. For example, they can include digital signature verification or virus scanning, etc. The embodiments of the present invention do not limit this here.
[0107] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of a software test environment deployment device provided by the present invention. The software test environment deployment device is applied to the central processing unit of the target server and includes:
[0108] A first determination module 41, configured to determine an installation package of a target programming tool adapted to the target server in response to an environment deployment instruction;
[0109] A first installation module 42, configured to install the installation package of the target programming tool to a specified path of the target server;
[0110] The first generation module 43 is configured to generate a target running environment for the target programming tool based on the target programming tool in the specified path, wherein the target running environment is isolated from the running environments of other programming tools in the target server;
[0111] The second installation module 44 is configured to install a dependency package corresponding to the target programming tool in the target running environment, so as to perform software automation testing based on the target running environment.
[0112] Based on the above embodiments:
[0113] As an alternative embodiment, the first determination module 41 includes:
[0114] The first acquisition module is configured to, in response to an environment deployment instruction, acquire the operation bit number of the operating system of the target server and use it as the target operation bit number;
[0115] The first judgment module is configured to judge whether there is a specified type of programming tool in the target server. If there is no specified type, the first determination sub-module is triggered. If there is a specified type, the second judgment module is triggered;
[0116] The first determination sub-module is configured to use the programming tool of the default type and default version that adapts to the target operation bit number as the target programming tool;
[0117] The second judgment module is configured to judge whether there is a specified version of the programming tool of the specified type in the target server. If there is a specified version, the second determination sub-module is triggered. If there is no specified version, the third determination sub-module is triggered;
[0118] The second determination sub-module is configured to use the programming tool of the specified type and specified version that adapts to the target operation bit number as the target programming tool;
[0119] The third determination sub-module is configured to use the programming tool of the specified type and default version that adapts to the target operation bit number as the target programming tool;
[0120] The second acquisition module is configured to acquire the installation package of the target programming tool.
[0121] As an alternative embodiment, the first generation module 43 includes:
[0122] The third judgment module is configured to judge whether there is a target type of running environment in the target server. If there is, the first generation sub-module is triggered. If there is no, the second generation sub-module is triggered;
[0123] The first generation sub-module is configured to generate a target running environment of the target type for the target programming tool based on the target programming tool in the specified path;
[0124] A second generation sub-module, configured to generate a target operating environment of a default type for a target programming tool based on the target programming tool in a specified path.
[0125] As an optional embodiment, the first installation module 42 is specifically configured to:
[0126] Install the installation package of the target programming tool to a specified path of the target server by means of silent installation.
[0127] As an optional embodiment, the second installation module 44 includes:
[0128] A second determination module, configured to determine preset parameters related to a dependency package of a target programming tool adapted to the target server;
[0129] A third determination module, configured to determine a dependency package corresponding to the target programming tool according to a first correspondence relationship, where the first correspondence relationship is: the correspondence relationship between the parameters of the programming tool and the dependency package of the programming tool;
[0130] A first installation sub-module, configured to install the dependency package corresponding to the target programming tool in the target operating environment.
[0131] As an optional embodiment, the software test environment deployment device further includes:
[0132] An update module, configured to update the first correspondence relationship in response to an update instruction.
[0133] For the introduction of the software test environment deployment device provided by the embodiments of the present invention, please refer to the embodiments of the software test environment deployment method described above. The embodiments of the present invention will not be elaborated herein.
[0134] Please refer to Figure 5 , Figure 5 FIG.
[0135] A memory 51, configured to store a computer program;
[0136] A processor 52, configured to implement the steps of the software test environment deployment method in the foregoing embodiments when executing the computer program.
[0137] For the introduction of the software test environment deployment device provided by the embodiments of the present invention, please refer to the embodiments of the software test environment deployment method described above. The embodiments of the present invention will not be elaborated herein.
[0138] Please refer to Figure 6 , Figure 6Schematic diagram of the structure of a computer-readable storage medium provided by the present invention. A computer program 62 is stored on the computer-readable storage medium 61. When the computer program 62 is executed by a processor, the steps of the software test environment deployment method in the foregoing embodiments are implemented.
[0139] For the introduction of the computer-readable storage medium provided by the embodiments of the present invention, please refer to the embodiments of the foregoing software test environment deployment method, and the embodiments of the present invention will not be elaborated herein.
[0140] The embodiments of the present invention further provide a computer program product, including a computer program / instructions. When the computer program / instructions are executed by a processor, the steps of the software test environment deployment method in the foregoing embodiments are implemented.
[0141] For the introduction of the computer program product provided by the embodiments of the present invention, please refer to the embodiments of the foregoing software test environment deployment method, and the embodiments of the present invention will not be elaborated herein.
[0142] The various embodiments in this specification are described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0143] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A software testing environment deployment method, characterized in that: The CPU used in the target server includes: In response to the environment deployment instruction, determining an installation package of a target programming tool adapted to the target server; Installing the installation package of the target programming tool to a specified path of the target server; Based on the target programming tool in the specified path, generating a target operating environment for the target programming tool, wherein the target operating environment is isolated from other programming tool operating environments in the target server; A dependency package corresponding to the target programming tool is installed in the target operating environment so as to perform software automation testing based on the target operating environment.
2. The software testing environment deployment method according to claim 1, characterized in that: In response to the environment deployment instruction, determining an installation package of a target programming tool adapted to the target server includes: In response to the environment deployment instruction, obtaining the number of operating bits of the operating system of the target server and using it as the target number of operating bits; Determining whether a specified type of programming tool exists on the target server; If there is no specified type, a programming tool of a default type and a default version adapted to the target number of operating bits is used as the target programming tool; If the specified type exists, determining whether the target server has a specified version of a programming tool for the specified type; If a specified version exists, a programming tool of a specified type and a specified version adapted to the target operating bit number is used as a target programming tool; If the specified version does not exist, a programming tool of the specified type and default version adapted to the target operating bit number is used as the target programming tool; Obtain an installation package of the target programming tool.
3. The software testing environment deployment method according to claim 2, characterized in that: Based on the target programming tool in the specified path, generating a target operating environment for the target programming tool includes: Determine whether the target server has a target type of operating environment; If so, generating a target operating environment of a target type for the target programming tool based on the target programming tool in the specified path; If not, a target operating environment of a default type is generated for the target programming tool based on the target programming tool in the specified path.
4. The software testing environment deployment method according to claim 3, characterized in that: The default types of programming tools include crawler tools; The default type of the operating environment includes a virtual environment of the crawler tool.
5. The software testing environment deployment method according to claim 1, characterized in that: Installing the installation package of the target programming tool to a specified path of the target server includes: The installation package of the target programming tool is installed to the specified path of the target server through a silent installation method.
6. The software testing environment deployment method according to claim 1, characterized in that: Installing a dependency package corresponding to the target programming tool in the target operating environment includes: Determine preset parameters related to the dependent packages of a target programming tool adapted to the target server; Determine the dependency package corresponding to the target programming tool according to the first corresponding relationship, wherein the first corresponding relationship is: the corresponding relationship between the parameters of the programming tool and the dependency package of the programming tool; A dependency package corresponding to the target programming tool is installed in the target operating environment.
7. The software testing environment deployment method according to claim 6, characterized in that: The software testing environment deployment method also includes: In response to the update instruction, the first corresponding relationship is updated.
8. A software testing environment deployment device, characterized in that: The CPU used in the target server includes: A first determination module, configured to determine, in response to an environment deployment instruction, an installation package of a target programming tool adapted to a target server; A first installation module, used to install the installation package of the target programming tool to a specified path of the target server; A first generating module, configured to generate a target operating environment for the target programming tool based on the target programming tool in the specified path, wherein the target operating environment is isolated from other programming tool operating environments in the target server; The second installation module is used to install the dependency package corresponding to the target programming tool in the target operating environment so as to perform software automation testing based on the target operating environment.
9. A software testing environment deployment device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the software testing environment deployment method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the software testing environment deployment method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Software testing method
CN120929386A