You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🏠 ``RequestsLibrary`` is a [Robot Framework](https://robotframework.org/) test library that uses the [Requests](https://github.com/kennethreitz/requests) HTTP client.
6
+
🏠 ``RequestsLibrary`` is a [Robot Framework](https://robotframework.org/) library
7
+
aimed to provide HTTP api testing functionalities by wrapping the well known [Python Requests Library](https://github.com/kennethreitz/requests).
7
8
8
9
9
10
## Install stable version
10
11
```sh
11
12
pip install robotframework-requests
12
13
```
13
14
14
-
## ✨ Install latest 0.8 pre-release version (recommended) ✨
&{data}= Create dictionary title=Robotframework requests body=This is a test! userId=1
55
-
${resp}= Post request jsonplaceholder /posts json=${data}
56
-
Dictionary Should Contain Key ${resp.json()} id
44
+
45
+
Get Request Test
46
+
Create Session google http://www.google.com
47
+
48
+
${resp_google}= GET On Session google / expected_status=200
49
+
${resp_json}= GET On Session jsonplaceholder /posts/1
50
+
51
+
Should Be Equal As Strings ${resp_google.reason} OK
52
+
Dictionary Should Contain Value ${resp_json.json()} sunt aut facere repellat provident occaecati excepturi optio reprehenderit
53
+
54
+
Post Request Test
55
+
&{data}= Create dictionary title=Robotframework requests body=This is a test! userId=1
56
+
${resp}= POST On Session jsonplaceholder /posts json=${data}
57
+
58
+
Status Should Be 201 ${resp}
59
+
Dictionary Should Contain Key ${resp.json()} id
57
60
```
61
+
58
62
### 📖 Keywords documentation
59
63
Robotframework-requests offers a wide set of keywords which can be found in the [Keywords documentation](http://marketsquare.github.io/robotframework-requests/doc/RequestsLibrary.html)
0 commit comments