@@ -15,186 +15,3 @@ Get Requests
1515 Should Be Equal As Strings ${resp.status_code } 200
1616 ${resp } = GET On Session bing /
1717 Should Be Equal As Strings ${resp.status_code } 200
18-
19- Get Requests with Url Parameters
20- [Tags] get
21- Create Session httpbin http://httpbin.org
22- &{params } = Create Dictionary key=value key2=value2
23- ${resp } = GET On Session httpbin /get params=${params }
24- Should Be Equal As Strings ${resp.status_code } 200
25- Should Be Equal ${resp.json()['args'] } ${params }
26-
27- Get HTTPS & Verify Cert
28- [Tags] get get-cert
29- Create Session httpbin https://httpbin.org verify=True
30- ${resp } = GET On Session httpbin /get
31- Should Be Equal As Strings ${resp.status_code } 200
32-
33- Post Request With URL Params
34- [Tags] post
35- Create Session httpbin http://httpbin.org
36- &{params } = Create Dictionary key=value key2=value2
37- ${resp } = POST On Session httpbin /post params=${params }
38- Should Be Equal As Strings ${resp.status_code } 200
39-
40- Post Request With No Data
41- [Tags] post
42- Create Session httpbin http://httpbin.org
43- ${resp } = POST On Session httpbin /post
44- Should Be Equal As Strings ${resp.status_code } 200
45-
46- Put Request With No Data
47- [Tags] put
48- Create Session httpbin http://httpbin.org
49- ${resp } = PUT On Session httpbin /put
50- Should Be Equal As Strings ${resp.status_code } 200
51-
52- Post Request With No Dictionary
53- [Tags] post
54- Create Session httpbin http://httpbin.org debug=3
55- Set Test Variable ${data } some content
56- ${resp } = POST On Session httpbin /post data=${data }
57- Should Be Equal As Strings ${resp.status_code } 200
58- Should Contain ${resp.text } ${data }
59-
60- Put Request With URL Params
61- [Tags] put
62- Create Session httpbin http://httpbin.org
63- &{params } = Create Dictionary key=value key2=value2
64- ${resp } = PUT On Session httpbin /put params=${params }
65- Should Be Equal As Strings ${resp.status_code } 200
66-
67- Put Request With No Dictionary
68- [Tags] put
69- Create Session httpbin http://httpbin.org
70- Set Test Variable ${data } some content
71- ${resp } = PUT On Session httpbin /put data=${data }
72- Should Be Equal As Strings ${resp.status_code } 200
73- Should Contain ${resp.text } ${data }
74-
75- Post Requests
76- [Tags] post
77- Create Session httpbin http://httpbin.org
78- &{data } = Create Dictionary name=bulkan surname=evcimen
79- &{headers } = Create Dictionary Content-Type=application/x-www-form-urlencoded
80- ${resp } = POST On Session httpbin /post data=${data } headers=${headers }
81- Dictionary Should Contain Value ${resp.json()['form'] } bulkan
82- Dictionary Should Contain Value ${resp.json()['form'] } evcimen
83-
84- Post With Unicode Data
85- [Tags] post
86- Create Session httpbin http://httpbin.org debug=3
87- &{data } = Create Dictionary name=度假村
88- &{headers } = Create Dictionary Content-Type=application/x-www-form-urlencoded
89- ${resp } = POST On Session httpbin /post data=${data } headers=${headers }
90- Dictionary Should Contain Value ${resp.json()['form'] } 度假村
91-
92- Post Request With Unicode Data
93- [Tags] post
94- Create Session httpbin http://httpbin.org debug=3
95- &{data } = Create Dictionary name=度假村
96- &{headers } = Create Dictionary Content-Type=application/x-www-form-urlencoded
97- ${resp } = POST On Session httpbin /post data=${data } headers=${headers }
98- Dictionary Should Contain Value ${resp.json()['form'] } 度假村
99-
100- Post Request With Data and File
101- [Tags] post
102- Create Session httpbin http://httpbin.org
103- &{data } = Create Dictionary name=mallikarjunarao surname=kosuri
104- Create File foobar.txt content=foobar
105- ${file_data } = Get File foobar.txt
106- &{files } = Create Dictionary file=${file_data }
107- ${resp } = POST On Session httpbin /post files=${files } data=${data }
108- Should Be Equal As Strings ${resp.status_code } 200
109-
110- Put Requests
111- [Tags] put
112- Create Session httpbin http://httpbin.org
113- &{data } = Create Dictionary name=bulkan surname=evcimen
114- &{headers } = Create Dictionary Content-Type=application/x-www-form-urlencoded
115- ${resp } = PUT On Session httpbin /put data=${data } headers=${headers }
116- Dictionary Should Contain Value ${resp.json()['form'] } bulkan
117- Dictionary Should Contain Value ${resp.json()['form'] } evcimen
118-
119- Head Request
120- [Tags] head
121- Create Session httpbin http://httpbin.org
122- ${resp } = HEAD On Session httpbin /headers
123- Should Be Equal As Strings ${resp.status_code } 200
124-
125- Options Request
126- [Tags] options
127- Create Session httpbin http://httpbin.org
128- ${resp } = OPTIONS On Session httpbin /headers
129- Should Be Equal As Strings ${resp.status_code } 200
130- Dictionary Should Contain Key ${resp.headers } allow
131-
132- Delete Request With URL Params
133- [Tags] delete
134- Create Session httpbin http://httpbin.org
135- ${resp } = DELETE On Session httpbin url=/delete?key=value&key2=value2
136- Should Be Equal As Strings ${resp.status_code } 200
137-
138- Delete Request With No Data
139- [Tags] delete
140- Create Session httpbin http://httpbin.org
141- ${resp } = DELETE On Session httpbin /delete
142- Should Be Equal As Strings ${resp.status_code } 200
143-
144- Delete Request With Data
145- [Tags] delete
146- Create Session httpbin http://httpbin.org debug=3
147- &{data } = Create Dictionary name=bulkan surname=evcimen
148- ${resp } = DELETE On Session httpbin /delete data=${data }
149- Should Be Equal As Strings ${resp.status_code } 200
150- Log ${resp.content }
151- Comment Dictionary Should Contain Value ${resp.json()['data'] } bulkan
152- Comment Dictionary Should Contain Value ${resp.json()['data'] } evcimen
153-
154- Patch Requests
155- [Tags] patch
156- Create Session httpbin http://httpbin.org
157- &{data } = Create Dictionary name=bulkan surname=evcimen
158- &{headers } = Create Dictionary Content-Type=application/x-www-form-urlencoded
159- ${resp } = PATCH On Session httpbin /patch data=${data } headers=${headers }
160- Dictionary Should Contain Value ${resp.json()['form'] } bulkan
161- Dictionary Should Contain Value ${resp.json()['form'] } evcimen
162-
163- Post Request With Redirection
164- [Tags] post
165- Create Session jigsaw http://jigsaw.w3.org
166- ${resp } = POST On Session jigsaw /HTTP/300/302.html
167- Should Be Equal As Strings ${resp.status_code } 200
168- ${resp } = POST On Session jigsaw /HTTP/300/302.html allow_redirects=${true }
169- Should Be Equal As Strings ${resp.status_code } 200
170-
171- Post Request Without Redirection
172- [Tags] post
173- Create Session jigsaw http://jigsaw.w3.org debug=3
174- ${resp } = POST On Session jigsaw /HTTP/300/302.html allow_redirects=${false }
175- ${status } = Convert To String ${resp.status_code }
176- Should Start With ${status } 30
177-
178- Put Request With Redirection
179- [Tags] put
180- Create Session jigsaw http://jigsaw.w3.org debug=3
181- ${resp } = PUT On Session jigsaw /HTTP/300/302.html
182- Should Be Equal As Strings ${resp.status_code } 200
183- ${resp } = PUT On Session jigsaw /HTTP/300/302.html allow_redirects=${true }
184- Should Be Equal As Strings ${resp.status_code } 200
185-
186- Put Request Without Redirection
187- [Tags] put
188- Create Session jigsaw http://jigsaw.w3.org
189- ${resp } = PUT On Session jigsaw /HTTP/300/302.html allow_redirects=${false }
190- ${status } = Convert To String ${resp.status_code }
191- Should Start With ${status } 30
192-
193- Do Not Pretty Print a JSON object
194- [Tags] json
195- Comment Define json variable.
196- Create Session httpbin http://httpbin.org
197- &{var } = Create Dictionary key_one=true key_two=this is a test string
198- ${resp } = GET On Session httpbin /get params=${var }
199- Should Be Equal As Strings ${resp.status_code } 200
200- Dictionaries Should Be Equal ${resp.json()['args'] } ${var }
0 commit comments