- 博客(3)
- 收藏
- 关注
原创 PIP换源
中国科技大学 :https://pypi.mirrors.ustc.edu.cn/simple。清华:https://pypi.tuna.tsinghua.edu.cn/simple。中科大:https://pypi.mirrors.ustc.edu.cn/simple。阿里云:http://mirrors.aliyun.com/pypi/simple。华中科技大学:http://pypi.hustunique.com。豆瓣:http://pypi.douban.com/simple。
2023-03-24 10:23:38
234
原创 pytest生成allure测试报告
2.下载allure包下载地址:https://github.com/allure-framework/allure2/releases下载解压完成后,将bin文件夹所在的目录放入环境变量中代码如下(示例):测试用例执行完成后就会生成allure_result和allure_report两个文件夹打开allure_report可以看到index.html,右键选择打开的方式最后就能看到测试执行的情况
2022-06-01 09:21:45
977
3
原创 Selenium打开网页时保持登陆状态
前言今天在学习selenium的时候,每次调试网页都会打开一个新的浏览器窗口,当我想要做某些操作的时候就需要自己再去模拟登陆,太浪费时间了。那么要怎么样才能在打开网页的时候直接就是登陆状态呢?使用下面的方法就可以直接加载登陆过后的保存在本地的信息,而不再需要手动登陆上代码from selenium import webdriveroption = webdriver.ChromeOptions()添加保持登录的数据路径:安装目录一般在C:\Users\****\AppData
2022-04-29 15:24:05
9387
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人