Skip to content

Commit 317cc38

Browse files
committed
Test other nested param endpoints
1 parent 8cf92dd commit 317cc38

File tree

9 files changed

+37134
-0
lines changed

9 files changed

+37134
-0
lines changed

src/test/java/com/typicode/jsonplaceholder/features/Posts.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,16 @@ Feature: Posts Endpoint
229229
And the response body follows the "MultipleComments" JSON schema
230230
And the results array contains 5 elements
231231
And the response body matches the "PostComments" expected response
232+
233+
Scenario Outline: Invalid nested path parameters - posts/1/<param>
234+
When I make a GET request to the Posts endpoint with nested path parameters of 1/<param>
235+
Then the response has a status code of 200
236+
And the response body follows the "<schema>" JSON schema
237+
And the results array contains <num> elements
238+
And the response body matches the "<body>" expected response
239+
Examples:
240+
| param | schema | num | body |
241+
| albums | MultipleAlbums | 100 | AllAlbums |
242+
| photos | MultiplePhotos | 5000 | AllPhotos |
243+
| todos | MultipleToDos | 200 | AllToDos |
244+
| users | MultipleUsers | 10 | AllUsers |

0 commit comments

Comments
 (0)