Skip to content

Commit b9a7901

Browse files
Merge pull request #4 from qavajs/remove-basic-modules
Remove basic modules
2 parents 51a38c2 + 17fb595 commit b9a7901

File tree

9 files changed

+282
-935
lines changed

9 files changed

+282
-935
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ This is a core package to get basic API cucumber steps.
55
module.exports = {
66
default: {
77
require: [
8-
'@qavajs/steps-config-loader',
98
'@qavajs/steps-api'
109
],
1110
browser: {

docs/api_action_steps.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# API Action Steps
22

3-
### I send {text} request to {landing-url}{headers} and save response as {text} ✅
3+
### I send {string} request to {landingUrl}{headers} and save response as {string} ✅
44

55
Send request to the endpoint
66

@@ -15,7 +15,7 @@ example:
1515
When I send "GET" request to "$BASE_API_URL" with headers "$headers" and save response as "response"
1616
```
1717
---
18-
### I send {text} request to {landing-url}{headers} with qs {text} and save response as {text} ✅
18+
### I send {string} request to {landingUrl}{headers} with qs {string} and save response as {string} ✅
1919

2020
Send request to the endpoint with query string
2121

@@ -31,7 +31,7 @@ example:
3131
When I send "GET" request to "https://www.some_service.com/some_endpoint" with qs "?category=HR&name=test" and save response as "response"
3232
```
3333
---
34-
### I send {text} request to {landing-url}{headers} with Body {json} and save response as {text} ✅
34+
### I send {string} request to {landingUrl}{headers} with Body {json} and save response as {string} ✅
3535

3636
Send request with body
3737

@@ -47,7 +47,7 @@ example:
4747
When I send "POST" request to "$BASE_API_URL" with Body "test_data_file.json" and save response as "response"
4848
```
4949
---
50-
### I send {text} request to {landing-url}{headers} with qs {text} and Body {json} and save response as {text} ✅
50+
### I send {string} request to {landingUrl}{headers} with qs {string} and Body {json} and save response as {string} ✅
5151

5252
Send request with body and query string
5353

@@ -64,7 +64,7 @@ example:
6464
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"
6565
```
6666
---
67-
### I send {text} request and save response as {text} to {landing-url}{headers} with Body: ✅
67+
### I send {string} request and save response as {string} to {landingUrl}{headers} with Body: ✅
6868

6969
Send request with body that given as part of Cucumber step
7070

docs/api_validation_steps.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Validation Steps
22

33
---
4-
### Response {text} Status Code {validation} {text} ✅
4+
### Response {response} Status Code {apiValidation} {string} ✅
55

66
Verify response status code
77

8-
| param | type | description |
9-
|:-----------:|:--------:|:--------------------------:|
10-
| response | Response | saved response |
11-
| validation | Function | function to wait condition |
12-
| statusCode | string | expected status code |
8+
| param | type | description |
9+
|:-----------: |:--------:|:--------------------------:|
10+
| response | Response | saved response |
11+
| apiValidation | Function | function to wait condition |
12+
| statusCode | string | expected status code |
1313
example:
1414
```gherkin
1515
Then Response "$response" Status Code equals to "200"
1616
```
1717

1818
---
19-
### Response {text} contains: ✅
19+
### Response {response} contains: ✅
2020

2121
Verify that response contains needed properties
2222

@@ -33,44 +33,44 @@ example:
3333
```
3434

3535
---
36-
### Response {text} {validation} {text} ✅
36+
### Response {response} {apiValidation} {string} ✅
3737

3838
Verifying that response model has necessary type
3939

40-
| param | type | description |
41-
|:-----------:|:--------:|:--------------------------:|
42-
| response | Response | saved response |
43-
| validation | Function | function to wait condition |
44-
| type | string | expected property type |
40+
| param | type | description |
41+
|:-------------:|:--------:|:--------------------------:|
42+
| response | Response | saved response |
43+
| apiValidation | Function | function to wait condition |
44+
| type | string | expected property type |
4545

4646
example:
4747
```gherkin
4848
Then Response "$response.payload.data.items" equals to "array"
4949
```
5050
---
51-
### Response {text} size {validation} {text} ✅
51+
### Response {response} size {apiValidation} {string} ✅
5252

5353
Verify that response array size is equal to|less than|greater than given number
5454

5555
| param | type | description |
5656
|:------------:|:--------:|:--------------------------:|
5757
| response | Response | saved response |
58-
| validation | Function | function to wait condition |
58+
| apiValidation| Function | function to wait condition |
5959
| expectedValue| string | expected property size |
6060

6161
example:
6262
```gherkin
6363
Then Response "$response.payload.data.items" size to be above "0"
6464
```
6565
---
66-
### I verify response {text} {validation} {text} ✅
66+
### I verify response {response} {apiValidation} {string} ✅
6767

6868
Execute any jsonPath query against response and verify result is equal to expected value
6969

7070
| param | type | description |
7171
|:------------:|:--------:|:--------------------------:|
7272
| response | Response | saved response |
73-
| validation | Function | function to wait condition |
73+
| apiValidation| Function | function to wait condition |
7474
| expectedValue| string | expected property value |
7575

7676
example:

0 commit comments

Comments
 (0)