摘要: LFTP: 设置:cat <<eof >> /etc/lftp.confset ftp:ssl-force trueset ftp:ssl-protect-data trueset ssl:verify-certificate noeof lftp username:password@server_ 阅读全文
posted @ 2023-11-02 10:11 小心走火 阅读(38) 评论(0) 推荐(0) 编辑
摘要: import imaplib import email import requests from selenium import webdriver import time url = "https://mail.google.com/mail/u/1/#search/" # res = reque 阅读全文
posted @ 2021-01-04 17:58 小心走火 阅读(807) 评论(0) 推荐(0) 编辑
摘要: Angular 规范 type 用于说明 commit 的类别,只允许使用下面7个标识。 feat:新功能(feature) fix:修补bug docs:文档(documentation) style: 格式(不影响代码运行的变动) refactor:重构(即不是新增功能,也不是修改bug的代码变 阅读全文
posted @ 2020-11-03 14:30 小心走火 阅读(459) 评论(0) 推荐(0) 编辑
摘要: var a = [];$("nav a").each(function(){a.push($(this).attr("href"))});return a; 阅读全文
posted @ 2020-09-07 10:25 小心走火 阅读(2901) 评论(0) 推荐(0) 编辑
摘要: 默认本地环境已OK 开启simulator: xcrun instruments -w 'iPhone 6 Plus' xcrun instruments -w 'iPhone 11 (13.6)' iPhone 6 Plus 是device 安装app: xcrun simctl install 阅读全文
posted @ 2020-08-28 15:44 小心走火 阅读(1613) 评论(0) 推荐(1) 编辑
摘要: 原理可以自行了解: 总的来说 ,就是主节点和子节点,主节点发送任务request到子节点上,子节点收到命令并且执行 那么怎么搭建这套环境呢,他们又是如何连接起来的呢 一、主节点hub 首先可以查看和selenium相关的镜像,找到我们需要启动的镜像 这里使用 docker search seleni 阅读全文
posted @ 2020-08-27 11:05 小心走火 阅读(948) 评论(0) 推荐(1) 编辑
摘要: 没什么好说的 直接到菜鸟教程找安装方法即可:https://www.runoob.com/docker/macos-docker-install.html $ brew cask install docker 安装好了后,直接在应用程序打开就行 查看是否成功安装: apple@appledeMacB 阅读全文
posted @ 2020-08-27 10:40 小心走火 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 针对一个列表进行去重 from functools import reduce def deduplication(list_data): """列表数据去重""" # [[1, 2], [1, 2], [1, 2, 3]] function = lambda x, y: x if y in x e 阅读全文
posted @ 2020-08-25 16:16 小心走火 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 使用多进程执行测试用例,进程数和运行case的机器有关,一核一个进程数 import multiprocessing if __name__ == "__main__": # 设置进程池 pool = multiprocessing.Pool(processes=4) # 提供数据 py_test_ 阅读全文
posted @ 2020-08-25 15:08 小心走火 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 1。 自己准备项目和环境 2。 Jenkins执行shell命令, 使用pytest执行项目,并且生成allure测试报告(allure-reports) pytest --reruns 2 testCase/case/mainFlow --alluredir=allure-reports 这样就生 阅读全文
posted @ 2020-08-25 11:34 小心走火 阅读(440) 评论(0) 推荐(0) 编辑