没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Test 接口自动化测试框架搭建流程说明: 环境:Python3+Request+Pytest 配置文件的存放: 1)使用yml格式文件存放接口的信息,比如请求方法(get/post)、url、headers、data 2)再添加上接口名称、备注、预期值(用来做测试用例中的断言)等 3)存放token值,取自登录接口的响应体中的某字段的值,方便其他接口调用 4)存放其他类似于token的值,比如A调用B接口的某返回值,那么就可以把B接口中的值存起来 接口请求和获取接口信息的封装: 1)把获取"请求方法(get/post)、url、headers、data"等均封装成一个一个的函数,并把"接口名称"作为函数的参数 2)封装写入和读取token的方法 3)封装接口requests的get和post请求方法(每个接口都需要单独调试通过) 编写测试用例: 1)使用Pytest管理用例,每个接口添加
资源推荐
资源详情
资源评论
收起资源包目录
test-master.zip (70个子文件)
Test-master
log
Wallet_API_Test.log 3KB
API
all_api.py 2KB
__pycache__
all_api.cpython-36.pyc 2KB
__init__.cpython-36.pyc 152B
__init__.py 0B
data
get_value.py 3KB
fund_test.xlsx 9KB
.idea
misc.xml 185B
vcs.xml 180B
modules.xml 260B
Test.iml 453B
.gitignore 38B
inspectionProfiles
profiles_settings.xml 174B
common
run_method.py 2KB
deal_token.pyc 2KB
__init__.pyc 159B
run_method.pyc 2KB
__pycache__
read_info.cpython-37.pyc 2KB
deal_token.cpython-36.pyc 2KB
get_log.cpython-36.pyc 392B
__init__.cpython-37.pyc 136B
run_method.cpython-36.pyc 1KB
base.cpython-36.pyc 319B
base.cpython-37.pyc 300B
run_method.cpython-37.pyc 1KB
__init__.cpython-36.pyc 155B
read_info.cpython-36.pyc 2KB
deal_token.cpython-37.pyc 2KB
get_log.cpython-37.pyc 465B
get_log.py 348B
deal_token.py 2KB
__init__.py 0B
read_info.py 2KB
base.py 172B
read_info.pyc 2KB
report
assets
style.css 3KB
__init__.py 44B
configs
__init__.py 0B
api_config.yml 712B
log.conf 533B
access_token.yml 47B
run
run_email.py 2KB
__init__.py 44B
README.md 1KB
testcase
test_asset.py 1KB
test_login.py 2KB
conftest.py 654B
__pycache__
test_login.cpython-36-pytest-5.3.2.pyc 3KB
conftest.cpython-36-pytest-5.3.2.pyc 607B
test_financial_invest.cpython-36-pytest-5.3.2.pyc 2KB
test_financial_invest.cpython-36-pytest-5.2.2.pyc 3KB
test_mortgage_loan.cpython-36-pytest-5.2.2.pyc 10KB
test_asset.cpython-36-pytest-5.3.2.pyc 2KB
test_common_settings.cpython-36-pytest-5.2.2.pyc 11KB
conftest.cpython-36-pytest-5.4.3.pyc 720B
test_common_settings.cpython-36-pytest-5.4.3.pyc 8KB
test_financial.cpython-36-pytest-5.2.2.pyc 12KB
test_asset.cpython-36-pytest-5.2.2.pyc 10KB
__init__.cpython-36.pyc 157B
conftest.cpython-36-pytest-5.2.2.pyc 719B
test_login.cpython-36-pytest-5.4.3.pyc 2KB
test_mortgage_loan.cpython-36-pytest-5.4.3.pyc 7KB
test_financial.cpython-36-pytest-5.4.3.pyc 10KB
test_asset.cpython-36-pytest-5.4.3.pyc 7KB
test_login.cpython-36-pytest-5.2.2.pyc 2KB
__init__.py 0B
report
asset_report.html 380KB
login_report.html 15KB
report.html 207KB
all_report.html 41KB
共 70 条
- 1
资源评论
孤单的宇航员
- 粉丝: 34
- 资源: 4580
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功