- 利用requests发送http请求
- 支持自定义python function,用于token计算,加密等操作 apitest/func.py:g
- 数据设定支持jinja2模板 (自定义function--f.xx 引用已填写数据 v.xx )
- 录入当前时间
- {{ f.unix_time() }}
- 计算token
- {{ f.token(v.source_system_code, v.token2, v.timestamp) }}
- 根据row_cnt生成json串
- [{%for i in range(v.row_cnt)%} {"name":"test"} {% if not loop.last %}, {%endif%} {%endfor%} ]
- 下划线开头的参数不会被传送,仅用于计算
- 录入当前时间
- 支持结果检验
- 支持locust压测
- 提供http接口一键测试相应testcase /api/run
- 用例复制
-
Notifications
You must be signed in to change notification settings - Fork 0
cooleasyhan/apitest
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published