上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页
摘要: 失败重跑插件pytest-rerunfailures 1.环境前提: 以下先决条件才能使用pytest-rerunfailures Python 3.5, 最高 3.8, or PyPy3 pytest 5.0或更高版本 2.安装插件 pip install pytest-rerunfailures 阅读全文
posted @ 2023-10-10 11:33 苹果芒 阅读(503) 评论(0) 推荐(0)
摘要: python做接口自动化: Python+requests+pytest+yml+allure+jenkins python做web ui自动化: Python+selenium4+pytest+POM+jenkins POM: 是指 Page Object Module设计模式 阅读全文
posted @ 2023-09-20 10:56 苹果芒 阅读(75) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/qq_45664055/article/details/132371769 # Enable selenium download function chrome_options = webdriver.ChromeOptions()#Use chr 阅读全文
posted @ 2023-09-11 22:24 苹果芒 阅读(245) 评论(0) 推荐(0)
摘要: selenium是没有办法直接获取请求的详细Headers,很多时候我们我们是需要提取相关的参数来做进一步使用比如token之类的 这里推荐使用一个SeleniumWire模块来达到目的 Selenium-wire模块: 安装: pip install selenium-wire Selenium 阅读全文
posted @ 2023-09-11 21:58 苹果芒 阅读(3927) 评论(0) 推荐(0)
摘要: 前言 selenium的webdriver本身没有api能做这个事情,详见issue。 国内的博客全抄来抄去,说selenium直接加add_argument参数就好了,弄得找了好几天找代码问题,上外网查秒解决。所以要学好计算机还是得英文呐~~ 我用requests登录后,获取到了认证信息,但是接下 阅读全文
posted @ 2023-09-11 21:48 苹果芒 阅读(2613) 评论(0) 推荐(1)
摘要: https://www.cnblogs.com/Nephalem-262667641/p/17330223.html pytest 的前置与后置处理 Pytest贴心的提供了类似setup、teardown的方法,并且还超过四个,一共有十种 模块级别:setup_module、teardown_mo 阅读全文
posted @ 2023-09-08 16:34 苹果芒 阅读(21) 评论(0) 推荐(0)
摘要: 下面是关于python中*的用法详解 1. *做法乘法运算符 在python中,*作为乘法运算符是使用,用来进行两个数的乘法运算。示例代码: a=3 b=4 c=a*b print(c) #12 2.*作为 函数的可变参数(是元组的形式导入) 单星号(*):*args。将所有参数以元组(tuple) 阅读全文
posted @ 2023-09-08 12:07 苹果芒 阅读(272) 评论(0) 推荐(0)
摘要: 1.驱动安装 1.1自动安装(适用于 外网可以访问的场景) import time from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager. 阅读全文
posted @ 2023-09-07 14:27 苹果芒 阅读(1492) 评论(0) 推荐(0)
摘要: in terms of 根据;用…的话;就…而言;以…为单位 1.In terms of quantity, production grew faster than ever before. 从数量上看,产量增长的速度比以往任何时期都要快。 2.He stood out in terms of co 阅读全文
posted @ 2023-09-06 13:39 苹果芒 阅读(197) 评论(0) 推荐(0)
摘要: appilciation.properties配置信息: # 数据库连接池配置 #最小空闲连接,默认值10,小于0或大于maximum-pool-size,都会重置为maximum-pool-size spring.datasource.hikari.minimum-idle=15 #连接池中可同时 阅读全文
posted @ 2023-08-30 13:46 苹果芒 阅读(2520) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页