CN109800000A - A method of the automatic test environment deployment based on python - Google Patents

A method of the automatic test environment deployment based on python Download PDF

Info

Publication number
CN109800000A
CN109800000A CN201811617622.3A CN201811617622A CN109800000A CN 109800000 A CN109800000 A CN 109800000A CN 201811617622 A CN201811617622 A CN 201811617622A CN 109800000 A CN109800000 A CN 109800000A
Authority
CN
China
Prior art keywords
python
automatic test
installation
test environment
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811617622.3A
Other languages
Chinese (zh)
Inventor
韩宇
戴立伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuyun Science & Technology Co Ltd
Original Assignee
Shenzhen Zhuyun Science & 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 Shenzhen Zhuyun Science & Technology Co Ltd filed Critical Shenzhen Zhuyun Science & Technology Co Ltd
Priority to CN201811617622.3A priority Critical patent/CN109800000A/en
Publication of CN109800000A publication Critical patent/CN109800000A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The method for the automatic test environment deployment based on python that the present invention relates to a kind of, step of the present invention are as follows: select the python version needed by user, then download corresponding installation kit, and the python needed by user installation automatically;Automatic downloading pycharm editing machine, and installed by user;The plug-in unit for needing to use when automatic installation web test, such as selenium, xlrd.The step of simplifying deployment web automated environment by the exe file being packaged out based on python technology.

Description

A method of the automatic test environment deployment based on python
Technical field
The present invention relates to a kind of automatic test environment dispositions methods, more specifically to a kind of based on python's The method of automatic test environment deployment.
Background technique
When carrying out software test-WEB application automatic test, need first to dispose automatic test exploitation environment, Regression test is also carried out after code is stablized.Human resources can greatly be saved by building automatic test environment, can also be protected Demonstrate,prove the accuracy of test.But the environment for needing first to dispose automatic test before this writes script and is also required to use automation The environment of test, therefore build the basis that automatic test environment is automatic test.
Existing ActivePython software contains a complete Python kernel, calls directly opening for Python official Source kernel, attached the Windows extension of some Python, while additionally provide the clothes of whole access Windows APIs Business, can freely use.Make in this way, the speed ratio python of update is slow, and environment is pure not as good as python, can only use Included IDE.
Summary of the invention
The technical problem to be solved in the present invention is that for the defects in the prior art, providing a kind of based on python's The method of automatic test environment deployment, simplifies the step of building automatic test environment.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of automatic test based on python The method of environment deployment, the python version needed is selected by user, then downloads corresponding installation kit automatically, and pacified by user Fill the python needed.
It is described based on python's in the method for the automatic test environment deployment of the present invention based on python The method and step of automatic test environment deployment are as follows: S1. is selected the python version needed by user, and then automatic downloading corresponds to Installation kit, and by user installation need python.
S2. pycharm editing machine is downloaded automatically, and is installed by user.
S3. the plug-in unit for needing to use when installation web is tested automatically, such as selenium, xlrd.
The method for implementing a kind of automatic test environment deployment based on python of the invention, has below beneficial to effect Fruit: the present invention simplifies the step of installation python automatic test environment deployment and reduces manual operation.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the method flow diagram of the automatic test environment deployment of the invention based on python
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, the method and step of the automatic test environment deployment based on python are as follows:
S1. the python version needed is selected by user, then downloads corresponding installation kit automatically, and needed by user installation The python wanted simplifies the step of user oneself finds installation kit from network and downloads.
S2. pycharm editing machine is downloaded automatically, and is installed by user, is eliminated user oneself and is found volume from network The step of collecting the installation kit of device and downloading.
S3. the plug-in unit for needing to use when installation web is tested automatically, such as selenium, xlrd, can install automatically The plug-in unit needed when python automatic test.
Further, python2.7, python3.4, version downloading is provided previously in the application program, and user can also be with From https: //www.python.org/downloads/windows acquisition python version, after version needed for user selects certainly Dynamic downloading python installation kit, opens python installation procedure after the completion of downloading.
Further, the application program can download Community Edition editing machine in the official website pycharm automatically, and complete in downloading Pycharm installation procedure is opened afterwards.
Further, after user installation completes python and editing machine, the application program has automatic installation python The function of the plug-in unit needed when automatic test, such as xlrd, selenium can save user and install each plug-in unit manually Step is also possible to prevent user's neglected loading plug-in unit, so that the later period can not normal use automatic test environment.
Further, application program needs to carry out to install the deployment of python automatic test environment using exe file.This It is file that technology, which needs to be packaged exe based on python technology, which is to be inserted by multiple .py files using Pyinstaller Part is packaged generation, and .py file includes that claim 1 step S1 selects python version, S3 to download pycharm automatically and edit The functions such as selection installation plug-in unit after device, S5 installation python.
Although being disclosed by above embodiments to the present invention, scope of protection of the present invention is not limited thereto, Under conditions of without departing from present inventive concept, deformation, the replacement etc. done to above each component will fall into right of the invention In claimed range.

Claims (5)

1. a kind of method of the automatic test environment deployment based on python, and one will be packaged out using journey according to the method Sequence the steps include:
S1. the python version needed is selected by user, then downloads corresponding installation kit automatically;
S2. the python that user installation needs;
S3. pycharm editing machine is downloaded automatically;
S4. user carries out installation pycharm editing machine;
S5. the plug-in unit for needing to use when installation web is tested automatically.
2. the method for the automatic test environment deployment according to claim 1 based on python, which is characterized in that described Python2.7, python3.4, version downloading is provided previously in application program, downloads python automatically after version needed for user selects Installation kit opens python installation procedure after the completion of downloading.
3. the method for the automatic test environment deployment according to claim 1 based on python, which is characterized in that described Application program can download Community Edition editing machine in the official website pycharm automatically, and open pycharm after the download is complete and install journey Sequence.
4. the method for the automatic test environment deployment according to claim 1 based on python, which is characterized in that user After being installed python and editing machine, the application program has the plug-in unit needed when automatic installation python automatic test Function.
5. the method for the automatic test environment deployment based on python according to claim 1, which is characterized in that described to apply journey Sequence needs to carry out to install the deployment of python automatic test environment using exe file;Being packaged exe based on python technology is text Part, the exe file are to be packaged to generate using Pyinstaller plug-in unit by multiple .py files, and .py file includes that right is wanted 1 step S1 selection python version, S3 is asked to download selection installation plug-in unit function after pycharm editing machine, S5 installation python automatically Energy.
CN201811617622.3A 2018-12-28 2018-12-28 A method of the automatic test environment deployment based on python Pending CN109800000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811617622.3A CN109800000A (en) 2018-12-28 2018-12-28 A method of the automatic test environment deployment based on python

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811617622.3A CN109800000A (en) 2018-12-28 2018-12-28 A method of the automatic test environment deployment based on python

Publications (1)

Publication Number Publication Date
CN109800000A true CN109800000A (en) 2019-05-24

Family

ID=66557880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811617622.3A Pending CN109800000A (en) 2018-12-28 2018-12-28 A method of the automatic test environment deployment based on python

Country Status (1)

Country Link
CN (1) CN109800000A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258595A (en) * 2020-03-13 2020-06-09 山东超越数控电子股份有限公司 PyInstaler-based python source code packaging method

Citations (4)

* 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
CN108021503A (en) * 2017-11-27 2018-05-11 万兴科技股份有限公司 The method, apparatus and computer-readable storage medium of automated function test
CN108595191A (en) * 2018-04-27 2018-09-28 京东方科技集团股份有限公司 A kind of application installation method and device
CN108920158A (en) * 2018-06-12 2018-11-30 郑州云海信息技术有限公司 A kind of automatically dispose device and method under linux environment

Patent Citations (4)

* 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
CN108021503A (en) * 2017-11-27 2018-05-11 万兴科技股份有限公司 The method, apparatus and computer-readable storage medium of automated function test
CN108595191A (en) * 2018-04-27 2018-09-28 京东方科技集团股份有限公司 A kind of application installation method and device
CN108920158A (en) * 2018-06-12 2018-11-30 郑州云海信息技术有限公司 A kind of automatically dispose device and method under linux environment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
天津滨海迅腾科技集团有限公司: "《python程序设计》", 31 July 2018, 南开大学出版社 *
姜文等: "基于Selenium的Web软件自动化测试", 《计算机技术与发展》 *
王瑞文等: "Python程序打包成exe可执行文件的方法探究", 《无线互联科技》 *
龙瑜: "window下搭建python+selenium+pycharm环境", 《HTTPS://WWW.CNBLOGS.COM/LONGYU4356/P/9341469.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258595A (en) * 2020-03-13 2020-06-09 山东超越数控电子股份有限公司 PyInstaler-based python source code packaging method
CN111258595B (en) * 2020-03-13 2023-08-01 超越科技股份有限公司 PyInsitler-based python source code packaging method

Similar Documents

Publication Publication Date Title
CN105117233B (en) API Calls method and device
CN108073400A (en) Software automation construction method, server and storage medium
US20050177816A1 (en) Automatic generation of graphical program code for a graphical program based on the target platform of the graphical program
CN105302706B (en) Applied program testing method and device
CN106294133B (en) A kind of detection method, relevant apparatus and the system of application program installation kit
CN105094783A (en) Method and device for testing Android application stability
CN112162753A (en) Software deployment method and device, computer equipment and storage medium
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN106502713A (en) A kind of method for upgrading software and system
CN104052769B (en) It is a kind of to mobile terminal apply comprising resource updates methods, devices and systems
US20140006868A1 (en) Test Executive System With Offline Results Processing
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN111459801A (en) RSF remote service interface function test method, module, computer equipment and storage medium
CN114610640A (en) Fuzzy testing method and system for trusted execution environment of Internet of things
CN109766278A (en) The backstage gateway WEB automatic test approach based on OSGI frame
CN109800000A (en) A method of the automatic test environment deployment based on python
CN108021503A (en) The method, apparatus and computer-readable storage medium of automated function test
CN112925698B (en) Test script generation method and integrated development environment
CN109976773A (en) The dispositions method and device of game test environment
CN107220174A (en) A kind of method and device of automatic test
CN105468514B (en) Test method and device based on data combination
CN112433938A (en) Method and device for testing application of mobile terminal
CN106325920A (en) Method and network equipment for implementing automatic upgrade of BIOS (Basic Input Output System)
CN110058893B (en) Application control display method and device
CN111078231A (en) Visualization interface component heat deployment method, client and server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication