会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
此生不换Yang
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
15
16
17
下一页
2018年2月28日
Selenium(Python) ddt数据驱动
摘要: 首先, 添加ddt模块:
阅读全文
posted @ 2018-02-28 10:48 此生不换Yang
阅读(478)
评论(0)
推荐(0)
2018年2月27日
PyMySQL连接MySQL数据库
摘要: 首先, 添加PyMySQL模块: 代码:
阅读全文
posted @ 2018-02-27 20:18 此生不换Yang
阅读(453)
评论(0)
推荐(0)
2018年2月26日
Selenium WebDriver(Python)API
摘要: 1、通过示例介绍Selenium-WebDriver 一个简单的入门方法就是这个例子,它在Google上搜索术语“Cheese”,然后将结果页面的标题输出到控制台。java csharp pythonfrom selenium import webdriverfrom selenium.common
阅读全文
posted @ 2018-02-26 23:10 此生不换Yang
阅读(421)
评论(0)
推荐(0)
使用unittest里面的discover()方法组织测试用例
摘要: import osimport unittestdirectory = os.getcwd()# 测试用例的目录organize = unittest.defaultTestLoader.discover(directory, pattern='test*.py')"""discover()方法有3
阅读全文
posted @ 2018-02-26 12:31 此生不换Yang
阅读(810)
评论(0)
推荐(0)
2018年2月25日
HTMLTestRunner.py(Python3)
摘要: """A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The simplest way to use this
阅读全文
posted @ 2018-02-25 21:41 此生不换Yang
阅读(505)
评论(0)
推荐(0)
Selenium(Python)调用pywin32上传图片
摘要: import unittestfrom time import sleepimport osfrom selenium import webdriverimport win32apiimport win32conimport win32clipboard as cutfrom selenium.we
阅读全文
posted @ 2018-02-25 20:10 此生不换Yang
阅读(1686)
评论(0)
推荐(1)
Python3安装pywin32模块
摘要: 假如你安装的是Python3.6, 那么可以直接用PyCharm或者pip安装pywin32模块: 但是, 由于我安装的是Python3.7, 所以PyCharm或者pip都无法成功安装pywin32模块, 所以只能手动安装了, 打开https://github.com/mhammond/pywin
阅读全文
posted @ 2018-02-25 15:05 此生不换Yang
阅读(46932)
评论(1)
推荐(2)
2018年2月24日
Selenium(Python)生成Html测试报告
摘要: 由于Python3已经不支持HTMLTestRunner了, 无论是PyCharm还是pip都无法安装成功, 所以只能去 http://tungwaiyip.info/software/HTMLTestRunner_0_8_2/HTMLTestRunner.py 手动下载: 在网页空白处点击鼠标右键
阅读全文
posted @ 2018-02-24 23:53 此生不换Yang
阅读(5329)
评论(0)
推荐(0)
Python搭配unittest
摘要: unittest是Python的单元测试框架, 类似于Java里面的TestNG。 Unittest.py:
阅读全文
posted @ 2018-02-24 10:52 此生不换Yang
阅读(451)
评论(0)
推荐(0)
怎样下载Firefox与Chrome浏览器驱动
摘要: 在浏览器地址栏输入https://www.seleniumhq.org/ 打开Selenium官网 下载Firefox浏览器驱动 解压到本地 下载Chrome浏览器驱动 解压到本地 把这2个驱动放到Python的安装目录下
阅读全文
posted @ 2018-02-24 10:29 此生不换Yang
阅读(551)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
下一页
公告