CN116383093A - Windows test environment deployment method and device, readable storage medium and electronic equipment - Google Patents

Windows test environment deployment method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN116383093A
CN116383093A CN202310653328.2A CN202310653328A CN116383093A CN 116383093 A CN116383093 A CN 116383093A CN 202310653328 A CN202310653328 A CN 202310653328A CN 116383093 A CN116383093 A CN 116383093A
Authority
CN
China
Prior art keywords
test
test tool
type
tool
windows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310653328.2A
Other languages
Chinese (zh)
Other versions
CN116383093B (en
Inventor
孙成思
王萍
王灿
何瀚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Baiwei Storage Technology Co ltd
Original Assignee
Chengdu Baiwei Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Baiwei Storage Technology Co ltd filed Critical Chengdu Baiwei Storage Technology Co ltd
Priority to CN202310653328.2A priority Critical patent/CN116383093B/en
Publication of CN116383093A publication Critical patent/CN116383093A/en
Application granted granted Critical
Publication of CN116383093B publication Critical patent/CN116383093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a Windows test environment deployment method, a device, a readable storage medium and electronic equipment, which are used for judging the type of a test tool to be installed according to the information of the test tool to be installed after a test instruction is acquired, and adopting different installation modes for different types of test tools, namely acquiring all required test tools and execution environments according to the information of the test tool to be installed in the test instruction in the early stage of test, realizing one-key installation, avoiding the need of test environment construction and test tool installation study by a tester aiming at different types of equipment, greatly reducing the labor time consumption and the study cost of test environment installation, and improving the test efficiency.

Description

Windows test environment deployment method and device, readable storage medium and electronic equipment
Technical Field
The present invention relates to the field of automated testing technologies, and in particular, to a method and an apparatus for deploying windows testing environments, a readable storage medium, and an electronic device.
Background
With the continuous advancement and development of electronic technology, a large number of different types of devices are on the market. And different types of equipment need to be tested under different test environments, so that testers need to build corresponding test environments according to the different types of equipment. Moreover, as the equipment is updated, the testers need to frequently upgrade the test environment and the test tools. Resulting in a significant effort required by the tester to learn the building of the test environment and the upgrading of the test tools during the early stages of the test. In addition, in the process of testing different equipment, the frequent replacement and the re-establishment of the testing environment also reduce the testing efficiency of the equipment.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the device for deploying the windows testing environment, the readable storage medium and the electronic equipment are provided, the testing environment corresponding to the equipment is built quickly, and the testing efficiency is improved.
In order to solve the technical problems, the invention adopts the following technical scheme:
a windows test environment deployment method comprises the following steps:
receiving a test instruction, wherein the test instruction comprises test tool information to be installed;
determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
obtaining a preset test tool mounting mode according to the type of the test tool to be mounted;
and installing the test tool to be installed according to a preset test tool installation mode.
In order to solve the technical problems, the invention adopts another technical scheme that:
a windows test environment deployment apparatus, comprising:
the receiving module is used for receiving a test instruction, wherein the test instruction comprises to-be-installed test tool information;
the determining module is used for determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
the acquisition module is used for acquiring a preset test tool installation mode according to the type of the test tool to be installed;
and the installation module is used for installing the to-be-installed test tool according to a preset test tool installation mode.
In order to solve the technical problems, the invention adopts another technical scheme that:
a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a windows test environment deployment method as described above.
In order to solve the technical problems, the invention adopts another technical scheme that:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing steps in a windows test environment deployment method as described above when the computer program is executed.
The invention has the beneficial effects that: after the test instruction is obtained, the type of the test tool to be installed is judged according to the information of the test tool to be installed, and different installation modes are adopted for the test tools of different types, namely all required test tools and execution environments can be obtained according to the information of the test tool to be installed in the test instruction in the early test stage, one-key installation is realized, test environment construction and study of test tool installation are not required for test personnel aiming at different types of equipment, the labor time consumption and study cost of test environment installation are greatly reduced, and the test efficiency is improved.
Drawings
FIG. 1 is a flowchart of steps of a method for deploying windows test environments in an embodiment of the present invention;
FIG. 2 is a schematic storage diagram of a test tool in a windows environment according to a deployment method of windows test environment in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an entire installation directory storing installed python3.7 in a windows test environment deployment method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another steps of a deployment method for a windows test environment according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a copy target directory of a deployment method of a windows test environment in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a bat interface of a deployment method for windows test environment in an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a windows test environment deployment device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, a windows test environment deployment method includes the steps of:
receiving a test instruction, wherein the test instruction comprises test tool information to be installed;
determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
obtaining a preset test tool mounting mode according to the type of the test tool to be mounted;
and installing the test tool to be installed according to a preset test tool installation mode.
From the above description, the beneficial effects of the invention are as follows: after the test instruction is obtained, the type of the test tool to be installed is judged according to the information of the test tool to be installed, and different installation modes are adopted for the test tools of different types, namely all required test tools and execution environments can be obtained according to the information of the test tool to be installed in the test instruction in the early test stage, one-key installation is realized, test environment construction and study of test tool installation are not required for test personnel aiming at different types of equipment, the labor time consumption and study cost of test environment installation are greatly reduced, and the test efficiency is improved.
Further, before receiving the test instruction, the method further comprises:
all test tools required for testing are uploaded to a code bin of the server.
It can be seen from the above description that all test tools required for testing are archived in the server before the test tools to be installed are installed by the command, so that the required test tools can be conveniently downloaded to the target test environment in the subsequent process.
Further, the uploading all test tools required for the test to the code bins of the server comprises:
converting an original text of the test tool into a first file format to obtain a first file;
packaging the first file into an executable file, wherein the executable file can be executed on windows equipment;
and uploading the executable file to a code bin of a server.
As can be seen from the above description, the original file of the test tool is converted into the first file, and then the first file is converted into the executable file, so that the test end device (such as a PC) does not need to install an execution environment corresponding to the first file, and the test tool can be directly installed in a windows environment.
Further, the type of the test tool to be installed includes a first type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a first type, if so, acquiring a copy path corresponding to the to-be-installed test tool according to the to-be-installed test tool information;
copying the test tool to be installed to a corresponding directory according to the copy path, and adding the directory to the environment variable of windows.
As can be seen from the above description, when the type of the test tool to be installed is the first type, the installation of the first type of test tools such as fio, sg_raw, smartctl is achieved by copying the test tool to a specific directory and adding the corresponding directory to the environment variable of Windows.
Further, the type of the test tool to be installed includes a second type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a second type, if so, acquiring the executable file according to the to-be-installed test tool information;
executing the executable file, and completing the installation of the test tool to be installed through a preset third party library;
judging whether the test tool to be installed is successfully installed, if not, acquiring failure information of the installation tool;
and writing the installation tool failure information into a file under a preset tool directory.
According to the description, the installation of the testing tool to be installed is completed based on the third party library by acquiring the executable file, so that clicking on UI controls of windows can be realized according to the third party library such as windows 32api, and installation information such as control display files of windows popup is acquired, and the installation of the second-type testing tools such as BurnTestPro and Git is completed; and writing the installation tool failure information of the test tool into a tool directory, so that the reason of the installation failure can be analyzed according to the installation result, and the problems of abnormal test and the like caused by the installation failure of the test tool are solved.
Further, the type of the test tool to be installed includes a third type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a third type, if so, acquiring an execution environment file corresponding to the to-be-installed test tool according to the to-be-installed test tool information;
copying the execution environment file to a preset file catalog, and adding the file catalog into environment variables of windows.
As can be seen from the above description, the installation of the execution environment is achieved by acquiring the execution environment file corresponding to the test tool to be installed, copying the execution environment file to the corresponding directory, and adding the file directory to the environment variable of the windows.
Further, the type of the test tool to be installed includes a fourth type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a fourth type, if so, acquiring a tool code compression packet according to the to-be-installed test tool information;
downloading and decompressing the tool code compression package to a preset file catalog;
and installing a third party library required by the operation of the test tool in the tool code compression package according to a preset installation instruction.
As is apparent from the above description, the installation of the fourth type of tool, such as auto-agent, is achieved by acquiring the tool code compression package and installing the third party library required for the tool to run according to the preset installation instruction.
Another embodiment of the present invention provides a windows test environment deployment apparatus, including:
the receiving module is used for receiving a test instruction, wherein the test instruction comprises to-be-installed test tool information;
the determining module is used for determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
the acquisition module is used for acquiring a preset test tool installation mode according to the type of the test tool to be installed;
and the installation module is used for installing the to-be-installed test tool according to a preset test tool installation mode.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a windows test environment deployment method as described above.
Another embodiment of the present invention provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of a windows test environment deployment method as described above when the computer program is executed.
The windows test environment deployment method, the windows test environment deployment device, the readable storage medium and the electronic equipment can be suitable for testing different types of equipment, and meet the test requirements of different equipment on different test environments and test tools, and the windows test environment deployment method, the windows test environment deployment device, the readable storage medium and the electronic equipment are described by the following specific embodiments:
example 1
Referring to fig. 1, a windows test environment deployment method includes the steps of:
the method comprises the following steps before performing one-key deployment:
s01, uploading all test tools required by the test to a code bin of a server, for example, uploading all test tools to a gitlab code bin, archiving all test tools through the server, so that one-key deployment is realized in a subsequent process to download the test tools to a target test environment, and the method is specific:
s011, converting an original text of the test tool into a first file format to obtain a first file; developing the original file as a. Py file, such as by python;
s012, packaging the first file into an executable file, wherein the executable file can be executed on windows equipment; when the exe file is executed by packing the py file in the pyinstalller tool in the step S011 into an exe executable file, the compressed package (test_tools) of all the test tools or the test tool installation packages can be downloaded to a device (PC) to which the test tools are to be installed, such as C:_nder the catalog, and then the test tools are installed in different ways under the condition of being decompressed to the catalog C: \test_tools, so that the test tools can run on the windows device even if the python execution environment is not installed on the windows device;
s013, uploading the executable file to a code bin of a server; referring to FIG. 2 and FIG. 3, FIG. 2 shows that all the test tools on the installable windows system are stored under the address http:// 172.17.16.90/tester/test_tools/-/tree/master/win; FIG. 3 shows the entire installation directory storing installed Python3.7 for the address http://172.17.16.90/tester/test_tools/-/tree/master/Python 37;
s02, developing and installing an entry file:
setting an entry executable file (exe) so that all test tools can be installed by calling the executable file at a command line later;
the command line input instruction structure is:
c, a \depth. Exe-r test tool requests a path-t of a file compression packet to be an installation tool name;
the path of the test tool request file compression packet in the instruction refers to an interface of a Rest protocol disclosed by a gitlab, and a test tool using method is obtained by checking the gitlab document;
s1, receiving a test instruction, wherein the test instruction comprises to-be-installed test tool information; if a tester inputs a corresponding instruction in a command line, the PC end receives the test instruction and executes a step of installing a test tool;
s2, determining the type of the to-be-installed test tool according to the to-be-installed test tool information; taking the command input by the command line as an example, if the to-be-installed test tool includes fio, sg_raw, smartctl and the like, determining the type of the test tool according to the name of the to-be-installed test tool, wherein fio, sg_raw and smartctl all belong to the test auxiliary tool;
s3, obtaining a preset test tool mounting mode according to the type of the test tool to be mounted; because fio, sg_raw and smartctl belong to the test auxiliary tool, acquiring a test tool installation mode corresponding to the type of the test auxiliary tool;
s4, installing the to-be-installed test tool according to a preset test tool installation mode; namely, the test tools fio, sg_raw and smartctl are installed in a test tool installation mode corresponding to the test auxiliary tool type.
Example two
Referring to FIG. 4, the present example is described with respect to the installation of four different types of test tools;
s41, a first type, wherein the first type is a test auxiliary tool and generally comprises test tools such as fio, sg_raw, smartctl and the like;
s411, the PC end judges whether the type of the to-be-installed test tool is a first type, if so, a copy path corresponding to the to-be-installed test tool is obtained according to the to-be-installed test tool information; the copy target catalogue of each tool is recorded in http://172.17.16.90/tester/test_tools/-/blob/master/win/dest_config.json files, and the copy target catalogue files correspond to the use in the automatic test cases; referring to fig. 5, a copy destination record of a test tool such AS SSD Benchmark, ATTO, crystalDiskMark, etc. is recorded in a file, and an installation execution file determines a copy path of the test tool according to the copy destination record file;
s412, copying the test tool to be installed to a corresponding catalog according to the copy path, and adding the catalog to environment variables of windows; after the copying is completed, the testing tools such as fio, sg_raw, smartctl and the like need to use a pyreg library of python to add a copy target directory into environment variables of windows;
s42, a second type, wherein the second type is a test auxiliary tool, and the test auxiliary tool generally comprises test tools such as BurnTest Pro, git and the like;
s421, the PC judges whether the type of the to-be-installed test tool is a second type, and if so, the executable file is obtained according to the to-be-installed test tool information; namely obtaining a depth file corresponding to the tool to be tested;
s422, executing the executable file, and completing the installation of the test tool to be installed through a preset third party library; the performing the duplicate. Exe file, and meanwhile, because the second type test tool needs to acquire the control display text of the windows popup and click the UI control in the installation process, the implementation needs to be performed through a third library in the process, where the third library includes: python such as win32api, win32gui, win32con, pywinauto, win com, etc.;
in an alternative embodiment, the method further comprises the steps of:
s423, judging whether the test tool to be installed is successfully installed, if not, acquiring failure information of the installation tool; screenshot is carried out on a windows interface when the test tool fails to be installed in the installation process through a python PIL library;
s424, writing the installation tool failure information into a file under a preset tool directory; writing the windows screenshot and the installation result into a result file (such as C: \test_tools\win\agent\result. Txt) under the test tool directory; the judging process can judge the installation result of each type of test tool;
s43, a third type, wherein the third type is an execution environment of an automation use case;
s431, judging whether the type of the to-be-installed test tool is a third type, if so, acquiring an execution environment file corresponding to the to-be-installed test tool according to the to-be-installed test tool information; if the python execution environment is installed, obtaining a catalog corresponding to the python execution environment;
s432, copying the execution environment file to a preset file catalog, and adding the file catalog into environment variables of windows; copying files under the Python installation directory (http:// 172.17.16.90/tester/test_tools/-/tree/master/Python 37) to the windows directory (C: \testtools\python 37), i.e. copying all installed files from the PC on which Python3.7 is installed to the corresponding file directory; and adding two directories of Windows object C \testtools\python37 and C \testtools\python37\scripts to environment variables of Windows, so that Windows has a python execution environment and can execute, and referring to a python code library, simultaneously, python independently provides an entry file copy.bat, and directly installs the python environment by clicking the entry file;
s44, a fourth type, which is an automation use case execution client (auto-agent); the codes of the code bin need to be installed after being downloaded locally, and the specific steps are as follows:
s441, the PC judges whether the type of the to-be-installed test tool is a fourth type, if so, a tool code compression packet is obtained according to the to-be-installed test tool information; namely, acquiring a downloading path of tool code compression;
s442, downloading and decompressing the tool code compression package to a preset file catalog; downloading the auto-agent code compression package to a C disc of windows under the windows path according to the downloading path, and decompressing the code compression package to a corresponding catalog such as C \auto-agent;
s443, installing a third party library required by the operation of the test tool in the tool code compression package according to a preset installation instruction; installing a python third party library required to be installed, which is specified in a win_requirements.txt file under an auto-agent directory, by executing a pip install command, wherein the python third party library is required to be used in code of an auto-agent code automation use case;
in an alternative embodiment, a double-click running bat file installable function is also provided for the second, third, and fourth types of test tools;
referring to fig. 6, the three types of test tools include a duplicate. Bat file and an exe file under the catalog; parameters required by the exe file are recorded in the depth file and used for starting the execution and installation of the exe file; specifically, as shown in fig. 6, there are a duplicate. Bat file and a reagent_install. Exe file under the reagent directory; agent_install.exe is obtained by the method described in steps S01-S02 of example one; because the execution of the agent_install.exe file needs to bring in parameters, the triggering effect cannot be realized only by double clicking; the "restore" parameter in the delete file records the code compression packet path information of the auto-agent, the "delete" parameter records the command to start the agent_install. Exe, and the vbscript is used to open the window interface by the CreateObject and generate the command line window, so that the user can trigger the agent_install. Exe to install by double clicking the delete file.
Example III
Referring to fig. 7, a windows test environment deployment apparatus includes:
the receiving module is used for receiving a test instruction, wherein the test instruction comprises to-be-installed test tool information;
the determining module is used for determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
the acquisition module is used for acquiring a preset test tool installation mode according to the type of the test tool to be installed;
and the installation module is used for installing the to-be-installed test tool according to a preset test tool installation mode.
Example IV
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of a windows test environment deployment method as described in embodiment one or two.
Example five
Referring to fig. 8, an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of a windows test environment deployment method according to one or two embodiments when executing the computer program.
In summary, according to the windows test environment deployment method, device, readable storage medium and electronic equipment provided by the invention, after a test instruction is acquired, the types of test tools to be installed are judged according to the information of the test tools to be installed, the four different types of test tools are installed in different modes respectively, when the test tools are of a first type, copy installation is executed, when the test tools are of a second type, exe file installation is executed, when the test tools are of a third type, python execution environment installation is executed, when the test tools are of a fourth type, auto-agent installation is executed, so that all required test tools and execution environments can be acquired according to the information of the test tools to be installed in the test instruction in the early stage of testing, one-key installation is realized, test environment construction and study of test tool installation are not required to be carried out by test personnel aiming at different types of equipment, labor time consumption and study cost of test environment installation are greatly reduced, when the test tools are failed in installation, screenshot of interfaces failed in tool installation is recorded, and corresponding installation results are recorded, so that the installation effect can be improved according to analysis failure reasons.
In the foregoing embodiments provided by the present application, it should be understood that the disclosed method, apparatus, computer readable storage medium and electronic device may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple components or modules may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be an indirect coupling or communication connection via some interfaces, devices or components or modules, which may be in electrical, mechanical, or other forms.
The components illustrated as separate components may or may not be physically separate, and components shown as components may or may not be physical modules, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (10)

1. The windows test environment deployment method is characterized by comprising the following steps:
receiving a test instruction, wherein the test instruction comprises test tool information to be installed;
determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
obtaining a preset test tool mounting mode according to the type of the test tool to be mounted;
and installing the test tool to be installed according to a preset test tool installation mode.
2. The windows test environment deployment method according to claim 1, wherein before receiving the test instruction, further comprises:
all test tools required for testing are uploaded to a code bin of the server.
3. The method for deploying windows testing environment according to claim 2, wherein uploading all testing tools required for testing to the code compartment of the server comprises:
converting an original text of the test tool into a first file format to obtain a first file;
packaging the first file into an executable file, wherein the executable file can be executed on windows equipment;
and uploading the executable file to a code bin of a server.
4. The windows test environment deployment method according to claim 1, wherein the type of the test tool to be installed comprises a first type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a first type, if so, acquiring a copy path corresponding to the to-be-installed test tool according to the to-be-installed test tool information;
copying the test tool to be installed to a corresponding directory according to the copy path, and adding the directory to the environment variable of windows.
5. A windows test environment deployment method according to claim 3, wherein the type of test tool to be installed comprises a second type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a second type, if so, acquiring the executable file according to the to-be-installed test tool information;
executing the executable file, and completing the installation of the test tool to be installed through a preset third party library;
judging whether the test tool to be installed is successfully installed, if not, acquiring failure information of the installation tool;
and writing the installation tool failure information into a file under a preset tool directory.
6. The windows test environment deployment method according to claim 1, wherein the type of the test tool to be installed comprises a third type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a third type, if so, acquiring an execution environment file corresponding to the to-be-installed test tool according to the to-be-installed test tool information;
copying the execution environment file to a preset file catalog, and adding the file catalog into environment variables of windows.
7. The windows test environment deployment method according to claim 1, wherein the type of the test tool to be installed comprises a fourth type;
the obtaining the preset test tool mounting mode according to the type of the test tool to be mounted comprises the following steps:
judging whether the type of the to-be-installed test tool is a fourth type, if so, acquiring a tool code compression packet according to the to-be-installed test tool information;
downloading and decompressing the tool code compression package to a preset file catalog;
and installing a third party library required by the operation of the test tool in the tool code compression package according to a preset installation instruction.
8. A windows test environment deployment apparatus, comprising:
the receiving module is used for receiving a test instruction, wherein the test instruction comprises to-be-installed test tool information;
the determining module is used for determining the type of the to-be-installed test tool according to the to-be-installed test tool information;
the acquisition module is used for acquiring a preset test tool installation mode according to the type of the test tool to be installed;
and the installation module is used for installing the to-be-installed test tool according to a preset test tool installation mode.
9. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements a windows test environment deployment method according to any of claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a windows test environment deployment method according to any one of claims 1-7 when executing the computer program.
CN202310653328.2A 2023-06-05 2023-06-05 Windows test environment deployment method and device, readable storage medium and electronic equipment Active CN116383093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310653328.2A CN116383093B (en) 2023-06-05 2023-06-05 Windows test environment deployment method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310653328.2A CN116383093B (en) 2023-06-05 2023-06-05 Windows test environment deployment method and device, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116383093A true CN116383093A (en) 2023-07-04
CN116383093B CN116383093B (en) 2023-08-08

Family

ID=86963778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310653328.2A Active CN116383093B (en) 2023-06-05 2023-06-05 Windows test environment deployment method and device, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116383093B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222001A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Environment deployment device and method
CN103546341A (en) * 2013-10-14 2014-01-29 广东电网公司信息中心 Automatic setup method of test environment
CN105760298A (en) * 2016-02-16 2016-07-13 上海斐讯数据通信技术有限公司 Third party testing service platform
US20170307679A1 (en) * 2016-04-20 2017-10-26 International Business Machines Corporation Method and apparatus for offline supported adaptive testing
CN107480048A (en) * 2017-07-13 2017-12-15 深圳市小牛在线互联网信息咨询有限公司 Testing tool generation method, device, storage medium and computer equipment
US10515005B1 (en) * 2018-12-20 2019-12-24 Atlassian Pty Ltd Systems and methods for testing source code
CN114238077A (en) * 2021-11-19 2022-03-25 航天信息股份有限公司 Automatic test task arranging system and method
CN116126357A (en) * 2022-12-14 2023-05-16 成都佰维存储科技有限公司 Automatic deployment method and device for test tool, readable storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222001A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Environment deployment device and method
CN103546341A (en) * 2013-10-14 2014-01-29 广东电网公司信息中心 Automatic setup method of test environment
CN105760298A (en) * 2016-02-16 2016-07-13 上海斐讯数据通信技术有限公司 Third party testing service platform
US20170307679A1 (en) * 2016-04-20 2017-10-26 International Business Machines Corporation Method and apparatus for offline supported adaptive testing
CN107480048A (en) * 2017-07-13 2017-12-15 深圳市小牛在线互联网信息咨询有限公司 Testing tool generation method, device, storage medium and computer equipment
US10515005B1 (en) * 2018-12-20 2019-12-24 Atlassian Pty Ltd Systems and methods for testing source code
CN114238077A (en) * 2021-11-19 2022-03-25 航天信息股份有限公司 Automatic test task arranging system and method
CN116126357A (en) * 2022-12-14 2023-05-16 成都佰维存储科技有限公司 Automatic deployment method and device for test tool, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN116383093B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US10114630B2 (en) Management of software and operating system updates required for the process of creating a virtual machine facsimile of an existing physical or virtual machine
US8352916B2 (en) Facilitating the automated testing of daily builds of software
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
US20050229175A1 (en) Hardware agnostic manipulation and management of image resources
CN107302476B (en) Automatic testing method and system for testing asynchronous interactive system
US8949812B2 (en) System and method for updating hard-coded dependencies
US10866803B2 (en) Generating interaction libraries
CN112148297A (en) Intelligent server encryption and packaging method and device
CN112241311A (en) Firmware simulation method and device, electronic equipment and readable storage medium
CN113642004A (en) Container mirror image security scanning and repairing method, device and equipment
EP2577458B1 (en) Distillation and reconstruction of provisioning components
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN112286543B (en) Application service deployment method and device
CN116383093B (en) Windows test environment deployment method and device, readable storage medium and electronic equipment
CN106933604B (en) System upgrading method and device
US8473943B2 (en) Using ecoprint for cloning of applications
CN111611160A (en) Software testing method, device, equipment and storage medium
CN107222355B (en) Server upgrading method and device
US20230090689A1 (en) Analysis of a Container Instance of an Operating System
CN115185644A (en) Detection method, system, equipment and storage medium based on container interactive application
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114237976A (en) Data acquisition method and device
CN116303067B (en) Testing method, device, equipment and medium based on cloud testing platform
US20240119154A1 (en) Zero-day patching within an entity's secure network
CN112860285B (en) SP upgrade package generation method and device of financial self-service equipment and computer equipment

Legal Events

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