摘要: 3、 # -*- coding:UTF-8 -*- import os from time import sleep import hashlib import glob DOWNLOAD_PATH = 'D:\\download_file' # 获取文件MD5值 def get_file_md5( 阅读全文
posted @ 2023-06-27 16:20 莲(LIT) 阅读(131) 评论(0) 推荐(0)
摘要: 一、测试目录&测试文件 二、代码实现 1、 # -*- coding:UTF-8 -*- import os from time import sleep DOWNLOAD_PATH = 'D:\\download_file' # 检查下载文件 def check_download_file(f): 阅读全文
posted @ 2023-06-20 09:38 莲(LIT) 阅读(167) 评论(0) 推荐(0)
摘要: 一、介绍 requirements.txt 是定义项目依赖的python包,可通过工具生成。 工具可以生成两种依赖包定义,一是项目依赖的python包,二是所在python环境安装的python包。 二、生成 requirements.txt 文件 1、生成项目依赖包 ♥♥♥♥♥♥ 安装 pipre 阅读全文
posted @ 2023-06-09 15:44 莲(LIT) 阅读(3227) 评论(0) 推荐(0)
摘要: Python-PyQt5的安装与简单使用 一、安装 1、安装 PyQt5 和 PyQt5-tools pip install PyQt5 -i https://pypi.douban.com/simple pip install PyQt5-tools -i https://pypi.douban.com/simple 安装结果查看 2、配 阅读全文
posted @ 2023-06-07 10:58 莲(LIT) 阅读(1216) 评论(0) 推荐(0)
摘要: Apifox-接口自动化测试持续集成 前言:此文为 Apifox CLI 命令行运行方式 一、准备 1、Apifox CLI 依赖于 Node.js >= v10,所以需要安装 Node.js(点击查看如何安装) 2、安装 Apifox CLI,执行 npm install -g apifox-cli(执行 npm list 查看安装结 阅读全文
posted @ 2023-05-24 17:30 莲(LIT) 阅读(375) 评论(0) 推荐(0)
摘要: Python-Tkinter接口压测工具分享 1、页面介绍 2、运行效果 老掉牙的UI😆😄😆😄😆😄 阅读全文
posted @ 2023-05-16 14:40 莲(LIT) 阅读(79) 评论(0) 推荐(0)
摘要: 提前祝大家五一快乐(*^▽^*) 前言: 我们在使用Selenium做UI自动化时都需要手动去下载各个浏览器版本的webdriver,有时我们可能还会遇到跨操作系统去进行测试。 以及有时因浏览器自动升级等原因,导致我们不得再去更新对应版本的webdriver。 为了解决以上问题,webdriver- 阅读全文
posted @ 2023-04-28 15:39 莲(LIT) 阅读(1924) 评论(0) 推荐(0)
摘要: 命令参数方式运行 # -*- coding: utf-8 -*- from locust import TaskSet, task, User ''' 命令行参数运行示例代码 ''' class Task_1(TaskSet): @task def task_a(self): print('打开冰箱 阅读全文
posted @ 2023-03-29 15:55 莲(LIT) 阅读(166) 评论(0) 推荐(0)
摘要: 前言: 任务:简单的理解就是,你想要你脚本的虚拟用户去做哪些事,比如请求某一个接口,或者执行某一个事件 用户:可以理解为,执这个任务的实例主体,或者在locust 中,也可以认为是一群蝗虫 一、TaskSet 类 TaskSet是定义用户将执行的一组任务的类,然后通过虚拟用户调用并执行这一组任务 1 阅读全文
posted @ 2023-03-29 14:52 莲(LIT) 阅读(204) 评论(0) 推荐(0)
摘要: pip 国内源地址 1、使用方式 pip install 包名 -i 国内源地址 2、国内源地址 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科技大学 https://pypi.mi 阅读全文
posted @ 2023-03-16 16:41 莲(LIT) 阅读(330) 评论(0) 推荐(0)