上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 65 下一页
摘要: 解決辦法 wsl -- update 阅读全文
posted @ 2023-08-04 22:30 胖豆芽 阅读(3) 评论(0) 推荐(0) 编辑
摘要: python allure将生成报告和打开报告写到命令文件,并默认使用谷歌打开 bat文件内容 pytest test_login.py --alluredir=./allure-results&& allure generate ./allure-results -o ./allure-repor 阅读全文
posted @ 2023-08-04 13:20 胖豆芽 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 问题:从excel中读取的数据应是什么格式呢? 1pytest中需要参数化时,需要的[(valuea,valueb)(valuex,valuey)] 列表内是元祖 import pytest def add(x, y): return x + y @pytest.mark.parametrize(" 阅读全文
posted @ 2023-08-04 12:02 胖豆芽 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.从excel中读数据 返回【{字典}{字典}】;当传参数时,可以获得对应单元格内容 import xlrd import json from configs.configs import HOST from utils.md5 import get_md5 # 在创建excel时,将登录接口的返 阅读全文
posted @ 2023-08-03 20:46 胖豆芽 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1.读excel表 2.登录 发请求 3.生成allure 报告 阅读全文
posted @ 2023-08-03 15:24 胖豆芽 阅读(5) 评论(0) 推荐(0) 编辑
摘要: x = 5 print(isinstance(x, int)) # True,x是int类型的对象 y = "Hello" print(isinstance(y, str)) # True,y是str类型的对象 z = [1, 2, 3] print(isinstance(z, list)) # T 阅读全文
posted @ 2023-08-03 14:43 胖豆芽 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #D:\pythonProject0726\test_case\test_one.py import time def setup_module(): print('准备测试数据') def teardown_module(): print('清理测试数据') def test_oneone(): 阅读全文
posted @ 2023-08-03 11:42 胖豆芽 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #下载包 清华镜像 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pytest-rerunfailures # D:\pythonProject0726\test_case\all_test_case.py import pytest 阅读全文
posted @ 2023-08-03 11:27 胖豆芽 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #D:\pythonProject0726\test_case\test_one.py import time def setup_module(): print('准备测试数据') def teardown_module(): print('清理测试数据') def test_one(): ex= 阅读全文
posted @ 2023-08-03 11:12 胖豆芽 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-03 10:16 胖豆芽 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 65 下一页