12 2022 档案
摘要:好文如下: http://testingpai.com/article/1621591199069
阅读全文
摘要:概述生成测试报告需要下载allure包 和 allure-pytest 库, 测试报告是通过allure-pytest生成,通过本地的allure包展示测试报告 一、allure 的安装与使用 1.下载allure包下载地址:https://github.com/allure-framework/a
阅读全文
摘要:背景:测试数据既要在fixture方法中使用,同时也在测试用例中使用 使用方法:在使用parametrize的时候添加"indirect=True"参数。pytest可以实现将参数传到fixture方法中,也可以在当前测试用例中使用。 原理:参数indirect=True时,pytest会把argn
阅读全文
摘要:一文搞懂fixture 各种骚操作: https://blog.csdn.net/weixin_46745811/article/details/122384070 好文好文!
阅读全文
摘要:from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from appium.webdriver.commo
阅读全文
摘要:import time from appium.webdriver import Remote """可使用uc浏览器小工具uc-devtools来查看H5混合页面""" caps = { "platformName": "Android", "appPackage": "com.lemon.lem
阅读全文
摘要:一、基于坐标的点击 1 startx = 792 2 endx = 900 3 starty = 49 4 endy = 137 5 center_x = (startx + starty) / 2 6 center_y = (endx + endy) / 2 7 8 # 基于坐标的点击, 9 #
阅读全文
摘要:1 import time 2 3 from appium.webdriver import Remote 4 from selenium.webdriver import ActionChains 5 from selenium.webdriver.common.actions.mouse_but
阅读全文
摘要:1 class BasePage(): 2 def __init__(self, driver): 3 self.driver = driver 4 5 def swipe_left(self): 6 """从右到左滑动""" 7 size = self.driver.get_window_rect
阅读全文
摘要:1 from appium.webdriver import Remote 2 3 4 caps = { 5 "platformName": "Android", 6 "appPackage": "com.lemon.lemonban", 7 "appActivity": ".activity.We
阅读全文
摘要:WebDriver支持的三种页面加载策略WebDriver支持的三种页面加载策略,即pageLoadStrategy有三种取值: normal:等待整个页面的加载,Selenium WebDriver保持等待,直到返回load事件。默认情况下,如果未设置页面加载策略,则设置 normal为初始策略。
阅读全文
摘要:参考博客:http://testingpai.com/article/1644570535388
阅读全文
摘要:一、docker概念 1、docker是一个容器引擎(创建容器),虚拟化技术的一种 2、虚拟化技术:虚拟机、K8S(硬盘、内存、服务) 3、容器(小型的linux系统) 4、举例 手机 > docker app > 容器 软件安装包 > 镜像 5、安装docker 1、linux上安装(阿里云服务器
阅读全文
摘要:前提:yum包更新到最新 sudo yum update 一、手动安装 1、安装需要的软件包yum-util 提供yum-config-mamager功能,另外两个是devicemapper驱动依赖的sudo yum install -y yum-utils 2、设置yum源为阿里云(速度更快)yu
阅读全文
摘要:安装指南参考:http://testingpai.com/article/1629981536584
阅读全文
摘要:虚拟机搭建:http://testingpai.com/article/1629981536584 docker官网:https://docs.docker.com/linux命令:http://testingpai.com/article/1639281644262 Docker+Jenkins
阅读全文
摘要:前提: Git 上已经创建好仓库 Windows 上已经安装好GIT客户端 步骤: 新建仓库文件夹,也可是磁盘根目录 D:\ 单击右键,选择Git Bash Here 使用git clone 仓库地址,将远程仓库clone到该文件下 将项目主目录下的文件复制到该目录下 站在巨人的肩膀上:https:
阅读全文
摘要:站在巨人的肩膀上: http://testingpai.com/article/1669799619811
阅读全文