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
### I send {text} request to {landing-url}{headers} and save response as {text} ✅
4
+
5
+
Send request to the endpoint
6
+
7
+
| param | type | description |
8
+
|:-----: |:------:|:---------------: |
9
+
| method | string | request method |
10
+
| url | string | endpoint url |
11
+
| headers| Object | object with headers (optional) |
12
+
| key | string | key that should be used for saving response |
13
+
example:
14
+
```gherkin
15
+
When I send "GET" request to "$BASE_API_URL" with headers "$headers" and save response as "response"
16
+
```
17
+
---
18
+
### I send {text} request to {landing-url}{headers} with qs {text} and save response as {text} ✅
19
+
20
+
Send request to the endpoint with query string
21
+
22
+
| param | type | description |
23
+
|:-----: |:------:|:---------------: |
24
+
| method | string | request method |
25
+
| url | string | endpoint url |
26
+
| headers| Object | object with headers (optional) |
27
+
| params | string | query string parameters |
28
+
| key | string | key that should be used for saving response |
29
+
example:
30
+
```gherkin
31
+
When I send "GET" request to "https://www.some_service.com/some_endpoint" with qs "?category=HR&name=test" and save response as "response"
32
+
```
33
+
---
34
+
### I send {text} request to {landing-url}{headers} with Body {json} and save response as {text} ✅
35
+
36
+
Send request with body
37
+
38
+
| param | type | description |
39
+
|:-----: |:------:|:---------------: |
40
+
| method | string | request method |
41
+
| url | string | endpoint url |
42
+
| headers | Object | object with headers (optional) |
43
+
| requestBody | JSON | request body |
44
+
| key | string | key that should be used for saving response |
45
+
example:
46
+
```gherkin
47
+
When I send "POST" request to "$BASE_API_URL" with Body "test_data_file.json" and save response as "response"
48
+
```
49
+
---
50
+
### I send {text} request to {landing-url}{headers} with qs {text} and Body {json} and save response as {text} ✅
51
+
52
+
Send request with body and query string
53
+
54
+
| param | type | description |
55
+
|:-----: |:------:|:---------------: |
56
+
| method | string | request method |
57
+
| url | string | endpoint url |
58
+
| headers | Object | object with headers (optional) |
59
+
| params | string | query string parameters |
60
+
| requestBody | JSON | request body |
61
+
| key | string | key that should be used for saving response |
62
+
example:
63
+
```gherkin
64
+
When I send "PUT" request to "https://www.some_service.com/some_endpoint/" with qs "?category=HR&name=test" and Body "test_data_file.json" and save response as "response"
65
+
```
66
+
---
67
+
### I send {text} request and save response as {text} to {landing-url}{headers} with Body: ✅
68
+
69
+
Send request with body that given as part of Cucumber step
70
+
71
+
| param | type | description |
72
+
|:-----: |:------:|:---------------: |
73
+
| method | string | request method |
74
+
| url | string | endpoint url |
75
+
| headers | Object | object with headers (optional) |
76
+
| requestBody | JSON | request body |
77
+
| key | string | key that should be used for saving response |
78
+
example:
79
+
```gherkin
80
+
When I send "POST" request and save response as "response" to "$BASE_API_URL" with Body:
81
+
"""
82
+
{
83
+
"title": "Test Post Request with Body passed as string"
0 commit comments