docs: update

This commit is contained in:
debugtalk
2019-12-11 17:14:13 +08:00
parent ddea1e475f
commit 5be6c2bb2c
21 changed files with 12 additions and 3 deletions

View File

@@ -1,11 +1,17 @@
## 案例介绍
我们团队在调研接口测试框架的时候选了httprunner[让我](https://github.com/readyou)来负责给大家做一次分享,于是有了这里的示例。
- 被测案例:[klook](https://www.klook.com/)
- 案例作者:[readyou](https://github.com/readyou)
我们团队选择了 HttpRunner 作为接口测试框架,并整理了一份案例,供大家参考。
## 注意事项
1. 本例子中有些地方用到了`localhost:8085`作为base_url这些接口是不能访问的仅仅作为示例学习怎样组织测试用例。
1. 本例子中有些地方用到了`localhost:8085`作为base_url这些接口是不能访问的仅作为示例学习怎样组织测试用例。
2. `https://maps.googleapis.com`是可以用的自己申请一个key替换掉文件中的`your_google_map_key`即可。
## 相关文件说明
模块 | 文件 | 用途 | 备注
---|----|------|------
google map 接口测试 | api/find_place_api.yml | google map根据名称搜索地址的api | 比较全面地使用了api可以使用的关键字name, base_url, request, variables, validate, extract
@@ -19,4 +25,6 @@ klook地理位置搜索接口测试 | api/get_area_groups_api.yml | 查询地理
klook地理位置搜索接口测试 | api/get_area_groups_testcase.yml | 查询地理位置下面的组——testcase |
klook地理位置搜索接口测试 | api/area_manage_testsuite.yml | 区域管理——testsuite |
| |
baidu首页demo | testcases/just_request_testcase.yml | 提取百度首页title的demo | 演示了直接使用request而不是引用api的方式使用了teardown_hooks的使用
baidu首页demo | testcases/just_request_testcase.yml | 提取百度首页title的demo | 演示了直接使用request而不是引用api的方式使用了teardown_hooks的使用
完整的案例访问[地址](https://github.com/httprunner/httprunner/tree/master/docs/examples/demo-klook)。

View File

@@ -74,6 +74,7 @@ nav:
- FAQ: FAQ.md
- 实践案例:
- TesterHome 登录: examples/testerhome-login.md
- klook: examples/demo-klook/README.md
- 相关资料: related-docs.md
- CHANGELOG: CHANGELOG.md