05 2021 档案
摘要:1 利用百度OCR功能(需电脑联网等百度账号) 参照https://www.cnblogs.com/chunfang/p/13234289.html pip install baidu-aip 2. 本地安装Tesseract pip install pytesseract 文字识别 pip ins
阅读全文
摘要:1。 调整用例执行顺序 默认按名称顺序执行。安装pip install pytest-ordering, 在测试方法上加装饰器@pytest.mark.last @pytest.mark.run(order=1) 2。遇到错误停止执行 -x 参数 pytest -x -v -s test_01.py
阅读全文
摘要:pytest参数化与数据驱动实现—— 1. 使用@pytest.mark.parametrize进行参数化和数据驱动 import pytest @pytest.mark.parametrize("test_input, expected", [('3+5', 8), ('1+5', 6), ('3
阅读全文
摘要:1. 安装pytest及其插件 pip install pytest pip install pytest-sugar(更好展示测试进度), pip install pytest-allure(生成报告), pip install pytest_xdist(多CPU分发,加快执行速度) 2.pych
阅读全文

浙公网安备 33010602011771号