postman Halfway test fail #4048
-
|
[get fiction books] Check Query Params | AssertionError: Fix: There should be 2 Query Params "genre=fiction" and "checkedOut=false": expected [ 'false', index: +0, …(2) ] to equal true facing this failed message how can i pass it.? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
@vijaychandra1910 Please make sure to set the query parameters correctly. There are two parameters:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Copy and paste this code . It will work |
Beta Was this translation helpful? Give feedback.
-
|
[get fiction books] Check Query Params | AssertionError: Fix: Add Query Param "genre=fiction" to your request: expected false to equal true [get book by id] path is set to /books/:id | AssertionError: Fix: Path should be "{{baseUrl}}/books/:id" not "{{baseUrl}}/books/id": expected '{{baseUrl}}/books' to match //books/:/ facing these failed message how can i pass it.? // Parse body depending on version const reqs = body.item; // DEBUG: List request names and indexes /** 1. get books */ pm.test( pm.test("[get books] path is set to /books", function () { /** 2. get fiction books */ pm.test( pm.test("[get fiction books] path is set to /books", function () { pm.test("[get fiction books] Check Query Params", function () { }); /** 3. get book by id */ // Debug: List all request names to help identify the correct one if (req3) { } else { /** 4. add a book */ } else { /** Collection Auth */ }); |
Beta Was this translation helpful? Give feedback.

@vijaychandra1910 Please make sure to set the query parameters correctly. There are two parameters:
fictionfalse