forked from adrianyorke/robotframework-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe092_working_with_rest_library.robot
More file actions
27 lines (25 loc) · 1.07 KB
/
recipe092_working_with_rest_library.robot
File metadata and controls
27 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** Settings ***
Documentation PROBLEM:
... You want to send a simple HTTP request using RESTinstance library.
... DISCUSSION:
... This recipe demonstrates installing and using an external library.
... This recipe has the following external dependencies:
... $ pip install -U RESTinstance
Library Collections
Library REST https://api.github.com
Force Tags py3.6 py3.7 py3.8
*** Variables ***
${recipe} Recipe 9.2 Working With REST Library
${level} Intermediate
${category} External Library: REST
*** Test Cases ***
Get Request
GET /users/adrianyorke
Output response
Integer response status 200
# Validate the value individual properties
String response body name Adrian Yorke
String response body location Helsinki, Finland
# Save the body in a variable so we can prove that something isn't in it
${body}= Output response body
Dictionary Should Not Contain Value ${body} The Black Knight