240 发简信
IP属地:河北
  • Resize,w 360,h 240
    Charles-APP抓包流程

    1、电脑端配置端口:Proxy->Proxy settings->8888并勾选 Enable transparent HTTP proxyin...

  • Resize,w 360,h 240
    python接口自动化2-发送post请求

    1、发送post请求 2、json (1)post的body为json类型,也可用json参数传入 (2)导入json模块,用dumps方法转成...

  • Resize,w 360,h 240
    python接口自动化1-发送get请求

    1、环境安装 pip install requests 2、get请求 (1)导入requests,通过get访问url (2)调用响应(res...

  • Resize,w 360,h 240
    pytest-13-其他

    1、fixture之autouse=True 调用fixture三种方法 1)函数或类里面方法直接传fixture的函数参数名称 2)使用装饰器...

  • pytest-12-自定义标记mark

    标记方法为webtest 指定参数值webtest:pytest -v -m webtest 不执行标记webtest的用例:pytest -v...

  • Resize,w 360,h 240
    pytest-11-函数传参和fixture传参数request

    1、登录函数传参 为了提高代码的复用性,一般会用不同用例去调用函数。 测试用例传参需要用装饰器@pytest.mark.parametrize ...

  • pytest-10-断言assert+跳过用例skip

    1、断言assert assert把实际结果和预期作对比符合预期pass否则 failed,可在异常时输出提示信息,报错后,便于查找原因。在上下...

  • Resize,w 360,h 240
    pytest-09-参数化parametrize+命令行传参

    1、参数化parametrize (1)测试用例参数化使用装饰器 pytest.mark.parametrize (2)参数组合:获取多个参数化...

  • Resize,w 360,h 240
    pytest-08-html报告报错截图+失败重跑

    1、失败截图 一般会把失败截图放在conftest.py文件内,运行时,只要检测到用例实例,就调用该方法 from selenium impor...