自动测试配置(python)

一、python的安装和配置

安装

 官网:http//www.python.org/

配置

系统设置中Path路径后面;C:\Users\AppData\Local\Programs\Python\Python37 (python的安装路径)

系统设置中Path路径后面;C:\Users\AppData\Local\Programs\Python\Python37\Scripts  (python安装路径下的scripts路径)

验证:

进入:cmd 

输入:python  运行正常即可(也可以输入:pip 看是否有参数说明显示)

安装Pycharm

  下载:JetbrainsCrack-2.6.10-release-enc.jar

1、正常下载安装专业版

2、进入pycharm中的bin目录下。并且把JetbrainsCrack-2.6.10-release-enc.jar下载好的包复制进取

3、在pycharm中的bin目录下,更改pycharm64.exe.vmoptions (注意有两个)

自动测试配置(python)

4、双击程序图标打开 PyCharm,选中 Activate选项,然后选中 Activation code选项,在下方对话框输入激活码,点击 OK 按钮。以下激活码可供参考:

BIG3CLIK6F-eyJsaWNlbnNlSWQiOiJCSUczQ0xJSzZGIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMTctMTEtMjMifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxNy0xMS0yMyJ9LHsiY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDE3LTExLTIzIn0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDE3LTExLTIzIn0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMTctMTEtMjMifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMTctMTEtMjMifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAxNy0xMS0yMyJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDE3LTExLTIzIn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5WCQVQbrI8KeT8M9VcBIWX7fD0fhexfg3ZRt0xqwMcXGNp3DdJHiO0rCdU+Itv7EmtnSVq9jBG1usMSFvMowR25mju2JcPFp1+I4ZI+FqgR8gyG8oiNDyNEoAbsR3lOpI7grUYSvkB/xVy/VoklPCK2h0f0GJxFjnye8NT1PAywoyl7RmiAVRE/EKwIDAQABo4GZMIGWMAkGA1UdEwQCMAAwHQYDVR0OBBYEFGEpG9oZGcfLMGNBkY7SgHiMGgTcMEgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9

或者:进入pycharm进入Help ->Register(注册) ->

自动测试配置(python)

   自动测试配置(python)

5、打开 PyCharm 后,点击 Help 按钮,再点 About,查看工具使用时限,若显示为2099年则破解成功。

自动测试配置(python)

   自动测试配置(python)

常用设置

  1.在file菜单下选择setting选项。

2.在setting面板左侧选择Editor->Font.

  3.右侧Size设置字体大小。

4.在setting面板左侧选择Appearance->Appearance

 安装:Selenium

  第一种

1.在cmd下输入pip install selenium进行在线安装。
  2.安装完成后输入python,进入Python。
  3.输入import selenium,回车。
  4.没有任何提示就说明配置完成

   自动测试配置(python)

   第二种

  直接在Pychram中倒入selenium

驱动配置

1.将Selenium-Driver解压。

  2.将以下三个驱动考贝至python安装目录下的Scripts目录下。

IEDriverServer.exe  (IE浏览器驱动) 

firefoxdriver.exe    (火狐浏览器驱动)

chromedriver.exe  (谷歌浏览器驱动)

相关推荐