mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-11 10:49:43 +08:00
Add example
This commit is contained in:
19
docs/examples/test_klook/api/find_place_api.yml
Normal file
19
docs/examples/test_klook/api/find_place_api.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: find place from text
|
||||
base_url: https://maps.googleapis.com
|
||||
request:
|
||||
method: GET
|
||||
url: /maps/api/place/findplacefromtext/json
|
||||
params:
|
||||
key: $key
|
||||
inputtype: textquery
|
||||
input: $input
|
||||
fields: 'formatted_address,geometry,name,permanently_closed,place_id,plus_code,types'
|
||||
language: zh_CN
|
||||
variables:
|
||||
input: 宝安
|
||||
key: your_google_map_key
|
||||
validate:
|
||||
- eq: [status_code, 200]
|
||||
- eq: [content.status, OK]
|
||||
extract:
|
||||
- place_id: content.candidates.0.place_id
|
||||
Reference in New Issue
Block a user