上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 80 下一页
摘要: 问题:从excel中读取的数据应是什么格式呢? 1pytest中需要参数化时,需要的[(valuea,valueb)(valuex,valuey)] 列表内是元祖 import pytest def add(x, y): return x + y @pytest.mark.parametrize(" 阅读全文
posted @ 2023-08-04 12:02 胖豆芽 阅读(156) 评论(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 胖豆芽 阅读(140) 评论(0) 推荐(0)
摘要: 1.读excel表 2.登录 发请求 3.生成allure 报告 阅读全文
posted @ 2023-08-03 15:24 胖豆芽 阅读(21) 评论(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 胖豆芽 阅读(21) 评论(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 胖豆芽 阅读(228) 评论(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 胖豆芽 阅读(17) 评论(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 胖豆芽 阅读(29) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-03 10:16 胖豆芽 阅读(21) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-03 10:03 胖豆芽 阅读(17) 评论(0) 推荐(0)
摘要: [pytest] testpaths = ./test_case/test_params.py addopts = -vs --alluredir ./report import pytest import requests from utils.read_yaml import get_yaml_ 阅读全文
posted @ 2023-08-02 22:00 胖豆芽 阅读(119) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 80 下一页