上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 96 下一页
摘要: 直接上代码: import time import datetime from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait # 等待页面加载某些元素 from selenium 阅读全文
posted @ 2020-01-23 11:56 干it的小张 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 通过SMTP发邮件 首先要了解几个协议: SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议,它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式。它定义了邮件客户端和SMTP邮件服务器之间,以及两台SMTP邮件服务器之间的通信规则。 POP3 阅读全文
posted @ 2020-01-22 00:15 干it的小张 阅读(147) 评论(0) 推荐(0) 编辑
摘要: import xlrd#打开文件并拿到book对象:book = xlrd.open_workbook(r"D:\s27\day68\接口测试示例.xlsx")sheet = book.sheet_by_index(0)print(sheet)#获取行:# print(sheet.nrows)#获取 阅读全文
posted @ 2020-01-21 23:50 干it的小张 阅读(174) 评论(0) 推荐(0) 编辑
摘要: import pytestimport requestsimport allure l = [ { "url": "https://www.v2ex.com/api/site/info.json", "title":"v2ex的title", "desc":"v2ex的描述信息", "expect" 阅读全文
posted @ 2020-01-21 21:34 干it的小张 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 下载:pip install allure-pytest下载jdk 配置Java环境 配置pytest.ini [pytest]addopts = -s -v --html=report/report.html --alluredir ./report/resulttestpaths = ./scr 阅读全文
posted @ 2020-01-21 14:24 干it的小张 阅读(312) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 96 下一页