-
Notifications
You must be signed in to change notification settings - Fork 0
REST API call
gcvfi edited this page Feb 20, 2020
·
7 revisions
Back to AIQ Commands | Home
Note: Draft content, work in progress, not yet reviewed or verified.
| Test Step | Test Data |
|---|---|
| open website | https://www.google.com/ |
| save _api{CURL("POST", "https://reqbin.com/echo/post/json", "{'login':'login','password':'password'}")} as post_response | |
| Enter Search | ${post_response} |
| save _api{GET(CURL("POST", "https://reqbin.com/echo/post/json", "{'login':'login','password':'password'}"), "success")} as post_response_success | |
| Enter Search | ${post_response_success} |
| wait for 1 secs | |
| ... | ... |
| ... | ... |
jsonplaceholder_url = https://jsonplaceholder.typicode.com/posts
jsonplaceholder_body = {"userId": 1, "title": "foo", "body": "bar"}
| Test Step | Test Data |
|---|---|
| open website | https://www.google.com/ |
| save _api{CURL("POST", ${jsonplaceholder_url}, ${jsonplaceholder_body})} as jsonplaceholder_response | |
| Enter Search | ${jsonplaceholder_response} |
| wait for 1 secs | |
| ... | ... |
| ... | ... |
jsonplaceholder_url = https://jsonplaceholder.typicode.com/posts
jsonplaceholder_body = {"userId": 1, "title": "foo", "body": "bar"}
jsonplaceholder_headers = { "Content-type": "application/json; charset=UTF-8" }
| Test Step | Test Data |
|---|---|
| open website | https://www.google.com/ |
| save _api{CURL("POST", ${jsonplaceholder_headers}, ${jsonplaceholder_body}, ${jsonplaceholder_url} )} as jsonplaceholder_response | |
| Enter Search | ${jsonplaceholder_response} |
| wait for 1 secs | |
| ... | ... |
| ... | ... |
- AIQ Commands wiki (new draft)
- AIQ User Guide wiki (new draft)
- Release Notes wiki (new draft)
- How to Guides